public class POPException extends java.lang.RuntimeException implements IPOPBase
| Modifier and Type | Field and Description |
|---|---|
int |
errorCode
Code of the error in the exception
|
java.lang.String |
errorMessage
Message associated with the exception
|
| Constructor and Description |
|---|
POPException()
Create a new empty POPException
|
POPException(int errorCode,
java.lang.String errorMessage)
Create a new POPException with the given value
|
| Modifier and Type | Method and Description |
|---|---|
static POPException |
createReflectException(java.lang.String methodName,
java.lang.String errorMessage)
Create an exception when invoke a serialize method
|
static POPException |
createReflectMethodNotFoundException(java.lang.String className,
int classId,
int methodId,
java.lang.String errorMessage)
Create an exception when method is not found
|
boolean |
deserialize(POPBuffer buffer)
Deserialize an exception from the buffer
|
boolean |
serialize(POPBuffer buffer)
Serialize an exception into the buffer
|
static POPException |
throwAccessPointNotAvailableException(POPAccessPoint accesspoint)
Throw an exception when the access point of an object is not available
|
static void |
throwBufferFormatException(java.lang.Class<?> c)
Throw an exception when the buffer format is not correct
|
static POPException |
throwBufferNotAvailableException()
Throw an exception when the buffer is not available
|
static POPException |
throwComboxNotAvailableException()
Throw an exception when the combox is not available
|
static POPException |
throwNullObjectNotAllowException()
Throw an exception when trying to create a null object
|
static void |
throwObjectBindException(POPAccessPoint accessPoint)
Throw an exception when the object binding is not a success
|
static void |
throwObjectNoResource()
Method to throw a new exception : No resource found
|
static void |
throwReflectException(java.lang.String methodName,
java.lang.String errorMessage)
Throw an exception when invoke a serialize method
|
static void |
throwReflectSerializeException(java.lang.String className,
java.lang.String errorMessage)
Throw an exception when invoke a serialize method
|
public int errorCode
public java.lang.String errorMessage
public POPException(int errorCode,
java.lang.String errorMessage)
errorCode - Code of the errorerrorMessage - Assiociated messagepublic POPException()
public static void throwObjectNoResource()
throws POPException
POPException - exception thrown by this methodpublic static void throwObjectBindException(POPAccessPoint accessPoint) throws POPException
accessPoint - Access point of the objectPOPException - exception thrown by this methodpublic static void throwBufferFormatException(java.lang.Class<?> c)
throws POPException
c - ClassPOPException - exception thrown by this methodpublic static void throwReflectException(java.lang.String methodName,
java.lang.String errorMessage)
throws POPException
POPException - exception thrown by this methodpublic static POPException createReflectException(java.lang.String methodName, java.lang.String errorMessage)
methodName - Name of the methoderrorMessage - Messagepublic static void throwReflectSerializeException(java.lang.String className,
java.lang.String errorMessage)
throws POPException
POPException - exception thrown by this methodpublic static POPException createReflectMethodNotFoundException(java.lang.String className, int classId, int methodId, java.lang.String errorMessage)
public static POPException throwBufferNotAvailableException() throws POPException
POPException - exception thrown by this methodpublic static POPException throwComboxNotAvailableException() throws POPException
POPException - exception thrown by this methodpublic static POPException throwAccessPointNotAvailableException(POPAccessPoint accesspoint) throws POPException
POPException - exception thrown by this methodpublic static POPException throwNullObjectNotAllowException() throws POPException
POPException - exception thrown by this methodpublic boolean deserialize(POPBuffer buffer)
deserialize in interface IPOPBasebuffer - The buffer to deserialize from