All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bandwidth.multifactorauth.exceptions.ErrorWithRequestException Maven / Gradle / Ivy

Go to download

The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs

There is a newer version: 12.0.0
Show newest version
/*
 * 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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy