Class GenericClientException

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

public class GenericClientException
extends ApiException
See Also:
Serialized Form
  • Constructor Summary

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

    Modifier and Type Method Description
    java.lang.String getDescription()
    Getter for Description.
    java.util.List<FieldError> getFieldErrors()
    Getter for FieldErrors.
    java.lang.String getType()
    Getter for Type.

    Methods inherited from class com.bandwidth.exceptions.ApiException

    getHttpContext, getResponseCode

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

    • GenericClientException

      public GenericClientException​(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

    • getType

      public java.lang.String getType()
      Getter for Type.
    • getDescription

      public java.lang.String getDescription()
      Getter for Description.
    • getFieldErrors

      public java.util.List<FieldError> getFieldErrors()
      Getter for FieldErrors.