public class

RcsGenericException

extends RcsServiceException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.gsma.services.rcs.RcsServiceException
         ↳ com.gsma.services.rcs.RcsGenericException

Class Overview

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.

Summary

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

Public Constructors

public RcsGenericException (String message)

Since: API Level 1.5

Constructor

Parameters
message Error message obtained either from a constant string or through e.getMessage()

public RcsGenericException (Throwable cause)

Since: API Level 1.5

Constructs a new Exception with the current stack trace and the specified cause.

Parameters
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.)

public RcsGenericException (String message, Throwable cause)

Since: API Level 1.5

Constructor

Parameters
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.)

Public Methods

public static void assertException (Exception e)

Since: API Level 1.5

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.

Parameters
e Exception