UnknownException class

A fallback exception thrown by any unknown sources or unexpected failure that are not NameExceptions.

In this particular case, a stackTrace remains useful as it provides details on the sources and the true nature of the error. At this point, deciding whether to exit the program or not depends on the programmer.

Inheritance

Constructors

UnknownException({required Object source, StackTrace? stackTrace, Object? error, String message = ''})
Creates a new UnknownException with an optional error message.

Properties

error Object?
The possible unknown error.
final
hashCode int
The hash code for this object.
no setterinherited
message String
The message describing the failure.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source → dynamic
The actual source input which caused the error.
finalinherited
sourceAsString String
The string value from the name source input.
no setterinherited
stackTrace StackTrace?
Trace revealing the source of that error.
final
type NameExceptionType
The name exception type.
finalinherited

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