com.bandwidth.multifactorauth.exceptions.ErrorWithRequestException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bandwidth-sdk Show documentation
Show all versions of bandwidth-sdk Show documentation
The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs
/*
* BandwidthLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package com.bandwidth.multifactorauth.exceptions;
import com.bandwidth.exceptions.ApiException;
import com.bandwidth.http.client.HttpContext;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for ErrorWithRequestException type.
*/
public class ErrorWithRequestException
extends ApiException {
private static final long serialVersionUID = -2207935819585830921L;
private String error;
private String requestId;
/**
* Initialization constructor.
* @param reason The reason for throwing exception
* @param context The http context of the API exception
*/
public ErrorWithRequestException(String reason, HttpContext context) {
super(reason, context);
}
/**
* Getter for Error.
* An error message pertaining to what the issue could be
* @return Returns the String
*/
@JsonGetter("error")
public String getError() {
return this.error;
}
/**
* Setter for Error.
* An error message pertaining to what the issue could be
* @param error Value for String
*/
@JsonSetter("error")
private void setError(String error) {
this.error = error;
}
/**
* Getter for RequestId.
* The associated requestId from AWS
* @return Returns the String
*/
@JsonGetter("requestId")
public String getRequestId() {
return this.requestId;
}
/**
* Setter for RequestId.
* The associated requestId from AWS
* @param requestId Value for String
*/
@JsonSetter("requestId")
private void setRequestId(String requestId) {
this.requestId = requestId;
}
}