PayloadTooLargeException class

The class PayloadTooLargeException is used to throw a payload too large exception

Example:

throw PayloadTooLargeException();

The message parameter is optional and is used to define the message of the exception

The uri parameter is optional and is used to define the uri of the exception

The statusCode is 413

Inheritance

Constructors

PayloadTooLargeException({String message = 'Payload too large!', Uri? uri})
The PayloadTooLargeException constructor is used to throw a payload too large exception
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The statusCode parameter is used to define the status code of the exception
finalinherited
uri Uri?
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the object to a JSON object.
inherited
toString() String
A string representation of this object.
inherited

Operators

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