|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.pnr.hci.StatelessContextSerializationException
public class StatelessContextSerializationException
Exception thrown by the StatelessContextSerializer
when errors occur. Errors are explained by error codes.
StatelessContextSerializer,
Serialized Form| Field Summary | |
|---|---|
static int |
CORRUPTED_DATA
Reason indicating that the given byte array for unserialization is corrupted, either it cannot be uncompressed using ZLIB, or the data part of the byte array (eventually after uncompressing) does not match the checksum. |
static int |
INCOMPATIBLE_SERIALIZER_VERSION
Reason indicating that the byte array to unserialize has a bad version number (for example, a version greater or incompatible with the version of the used StatelessContextSerializer). |
static int |
INVALID_DATA
Reason indicating that the given byte array for unserialization has an invalid format that obstructs to read it properly. |
static int |
READ_ERROR
Reason indicating that the StatelessContextSerializer is unable to read
the given byte array as a context (details are be add in the message
and/or the nested cause exception). |
static int |
WRITE_ERROR
Reason indicating that the StatelessContextSerializer is unable to write
the given object in a byte array (details are in the message
and/or the nested cause exception). |
| Constructor Summary | |
|---|---|
StatelessContextSerializationException(int reason,
java.lang.String message)
Creates a new StatelessContextSerializationException. |
|
StatelessContextSerializationException(int reason,
java.lang.String message,
java.lang.Throwable cause)
Creates a new StatelessContextSerializationException. |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage()
Gets the message. |
int |
getReason()
Gets the exception reason. |
void |
setMessage(java.lang.String message)
Sets the message. |
void |
setReason(int reason)
Sets the exception reason. |
java.lang.String |
toString()
Returns a string representation of this exception; The description includes the exception reason (ex.: INCOMPATIBLE_SERIALIZER_VERSION), the message, and the identified cause (The cause is the exception that caused this exception to get thrown). |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INCOMPATIBLE_SERIALIZER_VERSION
StatelessContextSerializer).
public static final int WRITE_ERROR
StatelessContextSerializer is unable to write
the given object in a byte array (details are in the message
and/or the nested cause exception).
public static final int READ_ERROR
StatelessContextSerializer is unable to read
the given byte array as a context (details are be add in the message
and/or the nested cause exception).
public static final int CORRUPTED_DATA
public static final int INVALID_DATA
| Constructor Detail |
|---|
public StatelessContextSerializationException(int reason,
java.lang.String message)
reason - The exception reasonmessage - An additional message
public StatelessContextSerializationException(int reason,
java.lang.String message,
java.lang.Throwable cause)
reason - The exception reasonmessage - An additional messagecause - The cause of this exception| Method Detail |
|---|
public void setReason(int reason)
reason - The reason of the exceptionpublic int getReason()
public void setMessage(java.lang.String message)
message - The messagepublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Throwable
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||