public class

RcsPermissionDeniedException

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

Class Overview

RCS permission denied exception

Thrown when a method of the service API is called that not allowed right now. This can be for multiple reasons like it is not possible to call accept() on a file transfer invitation that has previously already been rejected, the file trying to be sent is not allowed to be read back due to security aspects or any other operation that fails because the operation is not allowed or has been blocked for some other reason.

Summary

Public Constructors
RcsPermissionDeniedException(String message)
Constructor
RcsPermissionDeniedException(String message, Throwable cause)
Constructor
Public Methods
static void assertException(Exception e)
Asserts RcsPermissionDeniedException

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 RcsPermissionDeniedException (String message)

Since: API Level 1.5

Constructor

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

public RcsPermissionDeniedException (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 RcsPermissionDeniedException

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