java.lang.Object | ||||
↳ | java.lang.Throwable | |||
↳ | java.lang.Exception | |||
↳ | com.gsma.services.rcs.RcsServiceException | |||
↳ | com.gsma.services.rcs.RcsGenericException |
Rcs Generic Exception
A Generic exception that must be thrown from a service API when the requested operation failed to fully complete its scope of responsibility and none of the more specified exceptions can be thrown. The client must be able to trust that in case of any failure what so ever and its not possible to throw a more specific exception this exception will be thrown as a kind of default exception to signify that some error occurred that not necessarily need to be more specific than that.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
RcsGenericException(String message)
Constructor
| |||||||||||
RcsGenericException(Throwable cause)
Constructs a new Exception with the current stack trace and the specified cause.
| |||||||||||
RcsGenericException(String message, Throwable cause)
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
assertException(Exception e)
Asserts
RcsGenericException
An utility method that will translate the Server side exception to client specific exception by parsing exception message which will have a special formatted exception message with a pre-defined delimiter. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.gsma.services.rcs.RcsServiceException
| |||||||||||
From class
java.lang.Throwable
| |||||||||||
From class
java.lang.Object
|
Constructor
message | Error message obtained either from a constant string or through e.getMessage() |
---|
Constructs a new Exception with the current stack trace and the specified cause.
cause | the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
---|
Constructor
message | Error message obtained either from a constant string or through e.getMessage() |
---|---|
cause | the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
Asserts RcsGenericException
An utility method that will translate the Server side exception to client specific exception by parsing exception message which will have a special formatted exception message with a pre-defined delimiter.
e | Exception |
---|
RcsGenericException |
---|