BasicException class
Exception that can be created on the fly.
- Inheritance
-
- Object
- NamedException
- BasicException
Constructors
- BasicException(String problem, {String name = 'UnnamedException', String solution = '<none>', ExceptionSeverity severity = ExceptionSeverity.none})
-
Example:
const
Properties
- category → Type
-
category is either the super class or this class.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
An identifer for the exception.
Default to the class's runtimeType.
final
- name → String
-
A more user readable exception name than the key.
Default to key unless otherwise specified.
no setterinherited
- problem → String
-
Problem statement of the Exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- severity → ExceptionSeverity
-
Severity can be none, warning or critical.
final
- solution → String
-
Solution statement of the Exception.
final
- text → String
-
Complete description of the Exception.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
toString function returns the exception's text.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited