GlpiException class

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
no setter
hashCode int
The hash code for this object.
no setterinherited
message String
The GLPI's API error message Should be localized by the GLPI's engine
no setter
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.
override

Operators

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