ErrorObject class

Error object.

See https://jsonapi.org/format/#errors

Constructors

ErrorObject({String id, Link about, String status, String code, String title, String detail, String pointer, String parameter, Map<String, dynamic> meta })

Properties

about Link
A link that leads to further details about this particular occurrence of the problem.
final
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
id → String
A unique identifier for this particular occurrence of the problem.
final
meta Meta
A meta object containing non-standard meta-information about the error.
final
parameter → String
A string indicating which URI query parameter caused the error.
final
pointer → String
A JSON Pointer RFC6901 to the associated entity in the request document
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
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

fromJson(Map<String, dynamic> json) ErrorObject
Parses json into ErrorObject.