Class 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 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

      • 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 class Throwable