NotFoundException class

Exception indicating a response could not be created.

The HTTP response should have a status of HTTP 404 Not Found or HTTP 405 Method Not Allowed depending on if resourceExists is false or true, respectively.

For debugging purposes, the exact cause is indicated by the found property.

Inheritance

Constructors

NotFoundException(int found)
Constructor.

Properties

found int
Indicates how much was found before a result could not be created.
final
hashCode int
The hash code for this object.
no setterinherited
resourceExists bool
Indicates if the resource exists, even though the response was not found.
no setter
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
String representation
override

Operators

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

Constants

foundHandler → const int
Value for found when a handler was found, but no result was produced.
foundMethod → const int
Value for found when at least one handler for the HTTP method was found, but none of them matched the request path. This value has been deprecated in woomera 8.0.0. In previous releases, it was implemented incorrect. THis value was used when there existed one or more rules that matched the HTTP method (but could be for any pattern). It was intended for a HTTP 401 Not Found status; as opposed to foundNothing which was intended to produce a HTTP 405 Method Not Found status — that behaviour was not correct. Use foundNoResource instead.
foundNoResource → const int
Value for found when the resource does not exist.
foundNothing → const int
Value for found when no handlers for the HTTP method were found.
foundResourceDoesNotSupportMethod → const int
Value for found when the resource exists but has no such HTTP method.
foundStaticHandler → const int
Value for found when a StaticFile handler failed to produce a response.