public class

RcsServiceException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.gsma.services.rcs.RcsServiceException
Known Direct Subclasses

Class Overview

Rcs service exception

Summary

Public Constructors
RcsServiceException(String message)
Constructor
RcsServiceException(Throwable cause)
Constructs a new Exception with the current stack trace and the specified cause.
RcsServiceException(String message, Throwable cause)
Constructor
Protected Methods
static String extractServerException(Exception e)
Extracts server side exception message thrown over the AIDL layer after parsing it based on
static boolean isIntendedException(Exception e, Class<?> clazz)
Checks if the exception is one of the intended server side exception that has been thrown over the AIDL layer.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public RcsServiceException (String message)

Since: API Level 1.5

Constructor

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

public RcsServiceException (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 RcsServiceException (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.)

Protected Methods

protected static String extractServerException (Exception e)

Since: API Level 1.5

Extracts server side exception message thrown over the AIDL layer after parsing it based on

Parameters
e Exception
Returns
  • Server exception message

protected static boolean isIntendedException (Exception e, Class<?> clazz)

Since: API Level 1.5

Checks if the exception is one of the intended server side exception that has been thrown over the AIDL layer.

Parameters
e Exception
clazz Class
Returns
  • true if exception getMessage() starts with clazz getName()