WtModelException class

Thrown by WtModel when a request fails or the envelope reports an error; carries the server message and HTTP statusCode.

Implemented types

Constructors

WtModelException(String message, int statusCode)
Creates an exception with message and statusCode.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
Human-readable error message (from the envelope msg when present).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
HTTP status code (or a synthetic code for transport/parse errors).
final

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