Products Downloads


French version


 

This function is used to retrieve details of the last NATS error.


Context

  • Windows client

  • Windows server

  • Java client

  • Java server

  • Adelia Web Client

  • Adelia Cloud client

  • Event Adelia client


Parameters

NUM_BIN_4

Status

Return code of the last operation carried out. The possible values are as follows:

_NATS_ERR_OK 0 Successful
_NATS_ERR_ERROR -1

Non-specific error

_NATS_ERR_NOT_CONNECTED -2 Not connected (invalid connection parameter)
_NATS_ERR_INVALID_PARAMETER -3 Invalid parameter
_NATS_ERR_NOT_SUBSCRIBED -4 There is no subscriber for the requested subject
_NATS_ERR_TIMEOUT -5 Timeout
_NATS_ERR_TRUNCATED_DATA -6 Truncated output data
_NATS_ERR_JETSTREAM_ERROR
-7 JetStream error

Output parameter

NUM_BIN_4

JetStreamCode

JetStream error code, only entered if the error is _NATS_ERR_JETSTREAM_ERROR. Output parameter.

ALPHA

Message

Associated error message. Output parameter.

NUM_BIN_4

MessageLength (E)

Message variable length.


Example

NUM_BIN_4  Rc
NUM_BIN_4  JetStreamCode

ALPHA(250) Message

...

CALL_DLL 'NatsToolBx' 'NatsLastError' Rc JetStreamCode Message 250

↑ Top of page


  • Aucune étiquette