pureweb.client. ExceptionDetail

The ExceptionDetail class wraps an exception occuring on the client during command execution.

Method Summary

getMessage
Returns the content of the "message" part of the ExceptionDetail object, expressed as a string.
getRuntimeType
Returns the content of the "runtimeType" part of the ExceptionDetail object, expressed as a string.
getStackTrace
Returns the content of the "stackTrace" part of the ExceptionDetail object, expressed as a string.
toString
Returns the full content of the ExceptionDetail object, expressed as a string.

Constructor

new ExceptionDetail(runtimeType, message, stackTrace)

Initializes a new instance of ExceptionDetail.
Parameters:
Name Type Argument Description
runtimeType string The type of the exception.
message string The exception message.
stackTrace string <optional>
An optional stack trace from the exception.

Method Detail

getMessage() → {string}

Returns the content of the "message" part of the ExceptionDetail object, expressed as a string.
The message information is a short description of what went wrong.

getRuntimeType() → {string}

Returns the content of the "runtimeType" part of the ExceptionDetail object, expressed as a string.
The runtime type information provides details such as whether the application is running on 32-bit or 64-bit, the version of the runtime redistributable library, and so on.

getStackTrace() → {string}

Returns the content of the "stackTrace" part of the ExceptionDetail object, expressed as a string.
The stackTrace is an optional argument.

toString() → {string}

Returns the full content of the ExceptionDetail object, expressed as a string. The string is a concatenation in the format runtimeType + message + stackTrace.