ClientException class base

An exception occurred when accessing an API and caused by client-side code.

Inheritance

Constructors

ClientException(String message, {Uri? reference, dynamic cause})
Create an exception of message, and optional reference and cause.
const
ClientException.dataForTypeNotSupported(Uri reference, Type type, Type dataType)
Create an exception describing data of dataType is not supported.
factory
ClientException.dataNotSupported(Uri reference, Type dataType)
Create an exception describing data of dataType is not supported.
factory
ClientException.decodingJsonFailed(dynamic cause)
Create an exception telling that decoding JSON data failed with cause.
factory
ClientException.failed(Uri reference, dynamic cause)
Create an exception telling that calling reference failed with cause.
factory
ClientException.notRelative(Uri reference)
Create an exception describing that reference is not a relative one.
factory
ClientException.openingStreamFailed(dynamic cause)
Create an exception telling that a opening stream failed with cause.
factory
ClientException.readingBytesFailed(dynamic cause)
Create an exception telling that reading bytes failed with cause.
factory
ClientException.readingTextFailed(dynamic cause)
Create an exception telling that reading text failed with cause.
factory
ClientException.typeNotSupported(Uri reference, Type type)
Create an exception describing type is not supported for reference.
factory
ClientException.uriNotAllowed(Uri reference)
Create an exception describing that reference is not allowd.
factory

Properties

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

Operators

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