CustomException class

A custom exception class for handling specific errors in the application.

This class implements the standard Exception interface and allows for providing a user-friendly message along with an optional hidden message for debugging purposes.

Implemented types

Constructors

CustomException({Object? message, String? hiddenMessage})
Creates a CustomException.

Properties

hashCode → int
The hash code for this object.
no setterinherited
hiddenMessage → String?
An optional hidden message that can provide more technical details for debugging.
final
message ↔ String
The primary message of the exception, typically displayed to the user.
latefinal
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
Returns the message of the exception as its string representation.
override

Operators

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