ClientError class

Class to create and throw instances of client errors during runtime.

Implemented types

Constructors

ClientError(String code, String message, {Map<String, dynamic>? details})
Creates an instance of ClientError.

Properties

code String
Specific short code of the error message (e.g., validation_error, content_type_error)
getter/setter pair
details Map<String, dynamic>?
Any additional details about the error. Details is a JSON object and can have a different structure for different error types.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String
Short description of the error
getter/setter pair
origin String
Originator of the error either a client error or an internal server error
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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