RequestErrorFactory class
A collection of utility methods that create instances of the generated class RequestError.
Clients may not extend, implement or mix-in this class.
Constructors
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
Static Methods
-
invalidOverlayChangeInvalidEdit(
) → RequestError -
Return a request error representing an error condition caused by a
request
that had an invalid edit object. -
invalidOverlayChangeNoContent(
) → RequestError -
Return a request error representing an error condition caused by a
request
that attempted to change an existing overlay when no overlay existed. -
invalidParameter(
String path, String expectation) → RequestError -
Return a request error representing an error condition caused by a request
that had an invalid parameter. The
path
is the path to the invalid parameter, in JavaScript notation (e.g. "foo.bar" means that the parameter "foo" contained a key "bar" whose value was the wrong type). Theexpectation
is a description of the type of data that was expected. -
pluginError(
dynamic exception, String? stackTrace) → RequestError - Return a request error representing an error that occurred in the plugin.
-
unknownRequest(
String method) → RequestError -
Return a request error representing an error condition caused by a request
with the given
method
that cannot be handled by any known handlers.