Dart API Referencedart:coreException

Exception interface

Interface implemented by all core library exceptions. Defaults to an implementation that only carries a simple message.

interface Exception default _ExceptionImplementation {
  // TODO(lrn): This should be an abstract class, but we don't yet support
  // redirecting factory constructors.
  const Exception([var message]);
}

Implemented by

ClosureArgumentMismatchException, DecoderException, DirectoryIOException, EmptyQueueException, EncoderException, ExpectException, FileIOException, FormatException, FutureAlreadyCompleteException, FutureNotCompleteException, FutureUnhandledException, HttpException, HttpParserException, IllegalAccessException, IllegalJSRegExpException, IndexOutOfRangeException, IntegerDivisionByZeroException, IsolateSpawnException, LocaleDataException, MirrorException, MirroredError, NoMoreElementsException, NodeAssertionFailure, NotImplementedException, NullPointerException, ObjectNotClosureException, ProcessException, RuntimeError, SocketIOException, StreamException, UnsupportedOperationException, WebSocketException

Constructors

const Exception([message]) #

const Exception([var message]);