ApiException class

An exception occurred when accessing an API.

There are two direct sub classes defined on this package:

  • ClientException - accessing an API and caused by client-side code
  • OriginException - caused by validation of a response from an API origin
Implemented types
Implementers

Constructors

ApiException(String message, {Uri? reference})
A default constructor of message and an optional reference.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The descriptive message.
final
reference Uri?
An optional URI reference for an API resoure.
final
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