ErrorObject class

ErrorObject represents an error occurred on the server.

More on this: https://jsonapi.org/format/#errors

Constructors

ErrorObject({String id = '', String status = '', String code = '', String title = '', String detail = '', ErrorSource source = const ErrorSource()})
Creates an instance of a JSON:API Error. The links map may contain custom links. The about link passed through the [links'about'] argument takes precedence and will overwrite the about key in links.

Properties

code String
An application-specific error code, expressed as a string value.
final
detail String
A human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized.
final
hashCode int
The hash code for this object.
no setterinherited
id String
A unique identifier for this particular occurrence of the problem.
final
Error links.
final
meta Map<String, Object?>
Meta data.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → ErrorSource
Error source.
final
status String
The HTTP status code applicable to this problem, expressed as a string value.
final
title String
A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
final

Methods

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

Operators

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