Class ErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.bandwidth.exceptions.ApiException
com.bandwidth.webrtc.exceptions.ErrorException
All Implemented Interfaces:
java.io.Serializable

public class ErrorException
extends ApiException
This is a model class for ErrorException type.
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    ErrorException​(java.lang.String reason, HttpContext context)
    Initialization constructor.
  • Method Summary

    Modifier and Type Method Description
    int getCode()
    Getter for Code.
    java.lang.String getMessage()
    Getter for Message.

    Methods inherited from class com.bandwidth.exceptions.ApiException

    getHttpContext, getResponseCode

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ErrorException

      public ErrorException​(java.lang.String reason, HttpContext context)
      Initialization constructor.
      Parameters:
      reason - The reason for throwing exception
      context - The http context of the API exception
  • Method Details

    • getCode

      public int getCode()
      Getter for Code.
      Returns:
      Returns the int
    • getMessage

      public java.lang.String getMessage()
      Getter for Message.
      Overrides:
      getMessage in class java.lang.Throwable
      Returns:
      Returns the String