Class Event.ExceptionEvent
Represents an event with an exception information as its payload
Defined in: </home/ubuntu/streamscape/NeeveBuild/stjsapi/src/main/webapp/js/event/ExceptionEvent.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Event.ExceptionEvent(eventId, errorCode, errorMessage, severity)
Creates a new exception event
|
Method Attributes | Method Name and Description |
---|---|
number |
Gets the error code of the exception
|
String |
Gets the message of the exception
|
String |
Gets the severity of the exception
|
void |
setErrorCode(errorCode)
Sets the error code of the exception
|
void |
setErrorMessage(message)
Sets the message of the exception
|
void |
setSeverity(severity)
Sets the severity of the exception.
|
Class Detail
Event.ExceptionEvent(eventId, errorCode, errorMessage, severity)
Creates a new exception event
- Parameters:
- {String} eventId
- The id of the exception event to be created
- errorCode
- errorMessage
- severity
Method Detail
{number}
getErrorCode()
Gets the error code of the exception
- Returns:
- The exception error code
{String}
getErrorMessage()
Gets the message of the exception
- Returns:
- The exception message
{String}
getSeverity()
Gets the severity of the exception
- Returns:
- The exception severity
setErrorCode(errorCode)
Sets the error code of the exception
- Parameters:
- {number} errorCode
- The exception error code to be set
setErrorMessage(message)
Sets the message of the exception
- Parameters:
- {String} message
- The exception message to be set
setSeverity(severity)
Sets the severity of the exception.
Possible values:
Possible values:
- SEVERE: Severe exception
- WARNING: Warning
- INFO: Informational exception
- GENERIC: Generic exception
- Parameters:
- {String} severity
- The severity to be set