Now4realError

Now4realError

This class is used to report error conditions encountered during API calls.

Constructor

new Now4realError()

You cannot use this constructor directly. Interact with instances of this class through API methods promise rejections.

Members

(readonly) code :string

The identifier of the error.

(readonly) message :string

The description of the error.

Type Definitions

AbortedError :Now4realError

Occurs when the OAuth authentication flow has been interrupted before its conclusion.

Properties:
Name Type Description
code string

"ABORTED"

description string

The description of the error.

BlockedError :Now4realError

Occurs when the OAuth authentication tab has been blocked by the browser popup blocker.

Properties:
Name Type Description
code string

"BLOCKED"

description string

The description of the error.

DisconnectedError :Now4realError

Occurs when the client is not connected to the Now4real cloud (usually because it is offline) but the called method requires a connection.

Properties:
Name Type Description
code string

"DISCONNECTED"

description string

The description of the error.

InvalidArgumentsError :Now4realError

Occurs when the arguments passed to a method are either invalid or malformed.

Properties:
Name Type Description
code string

"INVALID_ARGUMENTS"

description string

The description of the error.

InvalidCallError :Now4realError

Occurs when a method has been called but could not be called.

Properties:
Name Type Description
code string

"INVALID_CALL"

description string

The description of the error.

NotAuthenticatedError :Now4realError

Occurs when there is no currently signed in user but the called method requires a successfully authenticated user.

Properties:
Name Type Description
code string

"NOT_AUTHENTICATED"

description string

The description of the error.

ServiceUnavailableError :Now4realError

Occurs when the Now4real cloud failed to respond. A new attempt to call the method should be done later.

Properties:
Name Type Description
code string

"SERVICE_UNAVAILABLE"

description string

The description of the error.

TechnicalProblemError :Now4realError

Occurs when there was an unexpected error during the execution of an operation.

Properties:
Name Type Description
code string

"TECHNICAL_PROBLEM"

description string

The description of the error.

TooFrequentError :Now4realError

Occurs when the post method has been called before the messageResendPeriod has passed.

Properties:
Name Type Description
code string

"TOO_FREQUENT"

description string

The description of the error.