HttpException class

A bas class for specific HTTP exception classes. Map data can be provided to add additional information as the response body.

Implemented types
Implementers

Constructors

HttpException([int status = HttpStatus.INTERNAL_SERVER_ERROR, String message = 'Internal Server Error', Map<String, dynamic>? data])
const

Properties

data Map<String, dynamic>?
final
hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int
final

Methods

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

Operators

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