ExceptionHandler class

ExceptionHandler is a class that handles different types of exceptions.

Constructors

ExceptionHandler()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

exceptions List<CustomException>
A static list of CustomException objects. This list is used to map error codes to their corresponding exceptions.
final

Static Methods

convertCodeToException(String errorCode) Exception
Converts an error code to its corresponding Exception.
returnException(Object e) → void
Handles an exception and prints an appropriate error message.