WPServerException class
Thrown for wpapp_server_error (HTTP 500) and for any error response
that has no dedicated exception, such as an unknown error code or a
response that is not a WordPress REST error.
code is the WordPress REST error code (null when the response had none),
status is the HTTP status code and data is the error's data object.
Show message to the user.
- Implemented types
Constructors
Properties
- code ↔ String?
-
getter/setter pair
-
data
↔ Map<
String, dynamic> ? -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ int?
-
getter/setter pair
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