BadRequestException class

Exception thrown when a bad request (400) is made to the API.

BadRequestException is used to indicate that the request sent by the client was invalid or malformed.

Inheritance

Constructors

BadRequestException(String status, String statusMessage, bool success)
Creates a BadRequestException with the given status, statusMessage, and success.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
The status code returned from the API.
finalinherited
statusMessage String
The message associated with the status code.
finalinherited
success bool
A flag indicating whether the API request was successful.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited