An error. More...
Public Member Functions | |
Error () | |
Initializes a new instance of the fm.liveswitch.Error class. More... | |
Error (fm.liveswitch.ErrorCode code, java.lang.Exception exception) | |
Initializes a new instance of the fm.liveswitch.Error class. More... | |
Error (fm.liveswitch.ErrorCode code, String message) | |
Initializes a new instance of the fm.liveswitch.Error class. More... | |
fm.liveswitch.ErrorCode | getCode () |
Gets the code. More... | |
int | getCodeValue () |
Gets the code. More... | |
String | getDescription () |
Gets the description for this fm.liveswitch.Error. More... | |
fm.liveswitch.ErrorCode | getErrorCode () |
Gets the code. More... | |
java.lang.Exception | getException () |
Gets the exception. More... | |
String | getMessage () |
Gets the message. More... | |
void | setCode (fm.liveswitch.ErrorCode value) |
Sets the code. More... | |
void | setCodeValue (int value) |
Sets the code. More... | |
void | setErrorCode (fm.liveswitch.ErrorCode value) |
Sets the code. More... | |
void | setException (java.lang.Exception value) |
Sets the exception. More... | |
void | setMessage (String value) |
Sets the message. More... | |
String | toJson () |
Serializes this instance to JSON. More... | |
String | toString () |
Returns the string representation of this error. More... | |
Static Public Member Functions | |
static fm.liveswitch.Error | fromJson (String errorJson) |
Deserializes an instance from JSON. More... | |
static String | toJson (final fm.liveswitch.Error error) |
Serializes an instance to JSON. More... | |
An error.
fm.liveswitch.Error.Error | ( | ) |
Initializes a new instance of the fm.liveswitch.Error class.
fm.liveswitch.Error.Error | ( | fm.liveswitch.ErrorCode | code, |
java.lang.Exception | exception | ||
) |
Initializes a new instance of the fm.liveswitch.Error class.
code | The code. |
exception | The exception. |
fm.liveswitch.Error.Error | ( | fm.liveswitch.ErrorCode | code, |
String | message | ||
) |
Initializes a new instance of the fm.liveswitch.Error class.
code | The code. |
message | The message. |
Reimplemented in fm.liveswitch.stun.Error.
|
static |
Deserializes an instance from JSON.
errorJson | The JSON to deserialize. |
fm.liveswitch.ErrorCode fm.liveswitch.Error.getCode | ( | ) |
Gets the code.
int fm.liveswitch.Error.getCodeValue | ( | ) |
Gets the code.
String fm.liveswitch.Error.getDescription | ( | ) |
Gets the description for this fm.liveswitch.Error.
Reimplemented in fm.liveswitch.stun.UnknownAttributeError, fm.liveswitch.stun.UnauthorizedStunError, fm.liveswitch.stun.turn.WrongCredentialsError, fm.liveswitch.stun.turn.UnsupportedTransportProtocolError, fm.liveswitch.stun.turn.PeerAddressFamilyMismatchError, fm.liveswitch.stun.turn.MobilityForbiddenError, fm.liveswitch.stun.turn.InsufficientCapacityError, fm.liveswitch.stun.turn.ForbiddenError, fm.liveswitch.stun.turn.ConnectionTimeoutOrFailureError, fm.liveswitch.stun.turn.ConnectionAlreadyExistsError, fm.liveswitch.stun.turn.AllocationQuotaReachedError, fm.liveswitch.stun.turn.AllocationMismatchError, fm.liveswitch.stun.turn.AddressFamilyNotSupportedError, fm.liveswitch.stun.TryAlternateStunError, fm.liveswitch.stun.StaleNonceError, fm.liveswitch.stun.StaleCredentialsError, fm.liveswitch.stun.ServerError, fm.liveswitch.stun.MissingUsernameError, fm.liveswitch.stun.IntegrityCheckFailureError, fm.liveswitch.stun.ice.RoleConflictError, and fm.liveswitch.stun.BadRequestError.
fm.liveswitch.ErrorCode fm.liveswitch.Error.getErrorCode | ( | ) |
Gets the code.
java.lang.Exception fm.liveswitch.Error.getException | ( | ) |
Gets the exception.
String fm.liveswitch.Error.getMessage | ( | ) |
Gets the message.
void fm.liveswitch.Error.setCode | ( | fm.liveswitch.ErrorCode | value | ) |
Sets the code.
void fm.liveswitch.Error.setCodeValue | ( | int | value | ) |
Sets the code.
void fm.liveswitch.Error.setErrorCode | ( | fm.liveswitch.ErrorCode | value | ) |
Sets the code.
void fm.liveswitch.Error.setException | ( | java.lang.Exception | value | ) |
Sets the exception.
void fm.liveswitch.Error.setMessage | ( | String | value | ) |
Sets the message.
String fm.liveswitch.Error.toJson | ( | ) |
Serializes this instance to JSON.
|
static |
Serializes an instance to JSON.
error | The error. |
String fm.liveswitch.Error.toString | ( | ) |
Returns the string representation of this error.