NoResponseFromHandler class

Exception to indicate a RequestHandler did not produce a response.

This exception should be thrown by a handler when it deliberately does not produce a Response, but expects a subsequent rule in the pipeline (or a rule in a subsequent pipeline) to produce the response.

Currently, the RequestHandler is defined to return a Future<Response?>, and it completes with a null to indicate the handler did not produce any response. In a future release, the RequestHandler will be redefined as Future<Response>. To prepare for that breaking change, define response handlers as returning a Future and throw this exception instead of returning a Future that completes with a null.

Inheritance

Constructors

NoResponseFromHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
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