Class ForbiddenRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.bandwidth.exceptions.ApiException
com.bandwidth.twofactorauth.exceptions.ForbiddenRequestException
- All Implemented Interfaces:
java.io.Serializable
public class ForbiddenRequestException extends ApiException
This is a model class for ForbiddenRequestException type.
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ForbiddenRequestException(java.lang.String reason, HttpContext context)
Initialization constructor. -
Method Summary
Modifier and Type Method Description java.lang.String
getMessage()
Getter for Message.
-
Constructor Details
-
ForbiddenRequestException
Initialization constructor.- Parameters:
reason
- The reason for throwing exceptioncontext
- The http context of the API exception
-
-
Method Details
-
getMessage
public java.lang.String getMessage()Getter for Message. The message containing the reason behind the request being forbidden- Overrides:
getMessage
in classjava.lang.Throwable
- Returns:
- Returns the String
-