GlpiException class Null safety

A special Exception class is used to handle the errors. It contains the error code and the error code error and message message from GLPI's API response. The code will be a HTTP status code. The error will be the error code and message the error message.

Implemented types

Constructors

GlpiException.fromResponse(int code, List json)
Create a new GlpiException from a http response
factory

Properties

code int
The error code
final
error String
The GLPI's API error code Reference: https://github.com/glpi-project/glpi/blob/master/apirest.md#errors
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
message String
The GLPI's API error message Should be localized by the GLPI's engine
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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