Error handling functions

Module documentation and detailed description for error handling functions.

Function/Subroutine documentation

  • subroutine nzaeGetLastErrorCode(handle, errorCode)

    Returns the error code of the last AE error.

    • Parameters
      • handle

        (integer) The handle passed to nzaeHandleRequest .

      • errorCode

        (integer) The return value of this function.

    The error code that is returned is defined in the C header file, /nz/export/ae/adapters/system/2/sys/include/nzaeusercodes.h.

  • subroutine nzaeGetLastErrorText(handle, errorText)

    Returns the error message text of the last AE error.

    • Parameters
      • handle

        (integer) The handle passed to nzaeHandleRequest .

      • errorText

        (character*) The return value of this function.

  • subroutine nzaeUserError(handle, errorText)

    Notifies the Netezza system that the AE encountered and error and it should not return any results.

    • Parameters
      • handle

        (integer) The handle passed to nzaeHandleRequest .

      • errorText

        (character*) The error to be displayed in nzsql.

    The maximum length of the error text is approximately 250 characters. Only the first call to this function is displayed.