Dart API Referencedart:coreRuntimeError

RuntimeError class

Error thrown when a runtime error occurs.

class RuntimeError implements Error {
 final message;
 RuntimeError(this.message);
 String toString() => "RuntimeError: $message";
}

Implements

Error

Constructors

new RuntimeError(message) #

RuntimeError(this.message);

Properties

final message #

final message

Methods

String toString() #

Returns a string representation of this object.

docs inherited from Object
String toString() => "RuntimeError: $message";