Top Description Fields Constructors Methods
javax.websocket

public Class EncodeException

extends Exception
Class Inheritance

A general exception that occurs when trying to encode a custom object to a string or binary message.
Author
dannycoward

Field Summary

Modifier and TypeField and Description
private final Object
private static final long

Constructor Summary

AccessConstructor and Description
public
EncodeException(Object
the object that could not be encoded.
object
,
String
the reason for the failure.
message
)

Constructor with the object being encoded, and the reason why it failed to be.

public
EncodeException(Object
the object that could not be encoded.
object
,
String
the reason for the failure.
message
,
Throwable
the cause of the problem.
cause
)

Constructor with the object being encoded, and the reason why it failed to be, and the cause.

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

the object.
getObject
()

Return the Object that could not be encoded.

Field Detail

objectback to summary
private final Object object
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

EncodeExceptionback to summary
public EncodeException(Object object, String message)

Constructor with the object being encoded, and the reason why it failed to be.

Parameters
object:Object

the object that could not be encoded.

message:String

the reason for the failure.

EncodeExceptionback to summary
public EncodeException(Object object, String message, Throwable cause)

Constructor with the object being encoded, and the reason why it failed to be, and the cause.

Parameters
object:Object

the object that could not be encoded.

message:String

the reason for the failure.

cause:Throwable

the cause of the problem.

Method Detail

getObjectback to summary
public Object getObject()

Return the Object that could not be encoded.

Returns:Object

the object.