Class ErrorWithRequestException

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

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

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

    Modifier and Type Method Description
    java.lang.String getError()
    Getter for Error.
    java.lang.String getRequestId()
    Getter for RequestId.

    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

    • ErrorWithRequestException

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

    • getError

      public java.lang.String getError()
      Getter for Error. An error message pertaining to what the issue could be
      Returns:
      Returns the String
    • getRequestId

      public java.lang.String getRequestId()
      Getter for RequestId. The associated requestId from AWS
      Returns:
      Returns the String