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

code → int
The JSON-RPC error code sent back to Metro.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
What went wrong, written for the developer at the terminal.
final
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.
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.