Class ErrorWithRequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.bandwidth.exceptions.ApiException
-
- com.bandwidth.multifactorauth.exceptions.ErrorWithRequestException
-
- All Implemented Interfaces:
Serializable
public class ErrorWithRequestException extends ApiException
This is a model class for ErrorWithRequestException type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorWithRequestException(String reason, HttpContext context)
Initialization constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getError()
Getter for Error.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
-
-
-
-
Constructor Detail
-
ErrorWithRequestException
public ErrorWithRequestException(String reason, HttpContext context)
Initialization constructor.- Parameters:
reason
- The reason for throwing exceptioncontext
- The http context of the API exception
-
-