Partilhar via


CallingCommunicationException Class

  • java.lang.Object
    • RuntimeException
      • com.azure.android.communication.calling.CallingCommunicationException

public class CallingCommunicationException

General purpose Exception class to capture all exceptions thrown from the Azure Communication Services for Calling

Constructor Summary

Constructor Description
CallingCommunicationException()

Creates a new instance of the CallingCommunicationException class

CallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector, Throwable cause)

Creates a new instance of the CallingCommunicationException class

CallingCommunicationException(CallingCommunicationErrors code, String message, String requestCorrelationVector, String responseCorrelationVector)

Creates a new instance of the CallingCommunicationException class

CallingCommunicationException(CallingCommunicationErrors code, String message)

Creates a new instance of the CallingCommunicationException class

CallingCommunicationException(CallingCommunicationErrors code)

Creates a new instance of the CallingCommunicationException class

Method Summary

Modifier and Type Method and Description
CallingCommunicationErrors getErrorCode()

The error code associated with this exception instance.

String getRequestCorrelationVector()

The request correlation-vector associated with this exception instance.

String getResponseCorrelationVector()

The response correlation-vector associated with this exception instance.

Constructor Details

CallingCommunicationException

public CallingCommunicationException()

Creates a new instance of the CallingCommunicationException class

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.

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)

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)

Creates a new instance of the CallingCommunicationException class

Parameters:

code - Error code for this exception.

Method Details

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.

Applies to