Throws class

Annotate a method to indicate that one may throws an HttpStatusException if response code between min and max.

Implementers
Annotations

Constructors

Throws(int min, int max, {bool negate: false})
const
Throws.clientError()
const
Throws.error()
const
Throws.not(int min)
const
Throws.notRedirect()
const
Throws.only(int min)
const
Throws.redirect()
const
Throws.serverError()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
max int
Maximum response code (exclusive).
final
min int
Minimum response code (inclusive).
final
negate bool
Negate the comparison.
final
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
Returns a string representation of this object.
inherited

Operators

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