Dart API Referencedart:coreRuntimeError

RuntimeError class

Exception thrown when a runtime error occurs.

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

Implements

Exception

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";