LiveException class
A live command failed in a way Metro should show to the developer.
code follows JSON-RPC: invalidParamsCode when the call's arguments are wrong, failedCode when the command couldn't do its job.
- Implemented types
Constructors
- LiveException(String message)
-
Creates an exception for a command that couldn't complete.
const
- LiveException.invalidParams(String message)
-
Creates an exception for missing or malformed arguments.
const
Properties
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
Constants
- failedCode → const int
- JSON-RPC error code for a command that couldn't complete.
- invalidParamsCode → const int
- JSON-RPC error code for missing or malformed arguments.