Class: StreamdataError

StreamdataError

new StreamdataError()

StreamdataError provides error details when an error is thrown while processing a Server Sent Event.

This object is provided by the onError callback.

Methods

getError() → {Object|undefined}

Returns the error object.
Returns:
the error object from the server (error object sent by the server) or from the client (JavaScript exception thrown).
Type
Object | undefined

getMessage() → {string}

Returns the message that explains the cause of the error.
Returns:
the message that explains the cause of the error.
Type
string

getStatus() → {Object|undefined}

Returns:
the status value of the error object from the server (error object sent by the server) or from the client (Javascript exception thrown).
Type
Object | undefined

isClient() → {boolean}

Returns true if error is from client side.
Returns:
true if error is from client side.
Type
boolean

isFatal() → {boolean}

Returns true if error is fatal.
Returns:
true if error is fatal.
Type
boolean

isServer() → {boolean}

Returns true if error is from server side.
Returns:
true if error is from server side.
Type
boolean