Class CallingCommunicationException
- Object
-
- Throwable
-
- Exception
-
- RuntimeException
-
- CallingCommunicationException
-
- All Implemented Interfaces:
Serializable
public class CallingCommunicationException extends RuntimeException
General purpose Exception class to capture all exceptions thrown from the Azure Communication Services for Calling- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CallingCommunicationException()
Creates a new instance of the CallingCommunicationException classCallingCommunicationException(CallingCommunicationErrors code)
Creates a new instance of the CallingCommunicationException classCallingCommunicationException(CallingCommunicationErrors code, String message)
Creates a new instance of the CallingCommunicationException classCallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector)
Creates a new instance of the CallingCommunicationException classCallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector, Throwable cause)
Creates a new instance of the CallingCommunicationException class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
HTTP-Like status code for the SDK error.CallingCommunicationErrors
getErrorCode()
The error code associated with this exception instance.String
getMessage()
Detailed message for the SDK error.String
getRequestCorrelationVector()
The request correlation-vector associated with this exception instance.String
getResponseCorrelationVector()
The response correlation-vector associated with this exception instance.int
getSubCode()
Unique integer identifier for the SDK error.
-
-
-
Constructor Detail
-
CallingCommunicationException
public CallingCommunicationException()
Creates a new instance of the CallingCommunicationException class
-
CallingCommunicationException
public CallingCommunicationException(CallingCommunicationErrors code)
Creates a new instance of the CallingCommunicationException class- Parameters:
code
- Error code for this exception.
-
CallingCommunicationException
public CallingCommunicationException(CallingCommunicationErrors code, String message)
Creates a new instance of the CallingCommunicationException class- Parameters:
code
- Error code for this exception.message
- Plain text error message for this exception.
-
CallingCommunicationException
public CallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector)
Creates a new instance of the CallingCommunicationException class- Parameters:
code
- Error code for this exception.message
- Plain text error message for this exception.requestCorrelationVector
- Request correlation vector for this exception.responseCorrelationVector
- Response correlation vector for this exception.
-
CallingCommunicationException
public CallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector, Throwable cause)
Creates a new instance of the CallingCommunicationException class- Parameters:
code
- Error code for this exception.message
- Plain text error message for this exception.requestCorrelationVector
- Request correlation vector for this exception.responseCorrelationVector
- Response correlation vector for this exception.cause
- Exception that caused this exception to be thrown.
-
-
Method Detail
-
getErrorCode
public CallingCommunicationErrors getErrorCode()
The error code associated with this exception instance.
-
getRequestCorrelationVector
public String getRequestCorrelationVector()
The request correlation-vector associated with this exception instance.
-
getResponseCorrelationVector
public String getResponseCorrelationVector()
The response correlation-vector associated with this exception instance.
-
getCode
public int getCode()
HTTP-Like status code for the SDK error.
-
getSubCode
public int getSubCode()
Unique integer identifier for the SDK error.
-
getMessage
public String getMessage()
Detailed message for the SDK error.- Overrides:
getMessage
in classThrowable
-
-