ErrorHandler class

Custom static error page to be served when an error occurs.

Constructors

ErrorHandler({String? errorCode, String? mimeType, String? staticFile})
ErrorHandler.fromJson(Map json_)

Properties

errorCode String?
Error condition this handler applies to. Possible string values are:
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
mimeType String?
MIME type of file.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
staticFile String?
Static file content to be served for this error.
getter/setter pair

Methods

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

Operators

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