HivezException class abstract
The base class for all exceptions and errors thrown by the Hivez library.
All custom exceptions in Hivez should extend this class to provide a consistent interface for error handling, logging, and debugging. This class encapsulates a human-readable error message, an optional underlying cause, and an optional stack trace for advanced diagnostics.
Best Practices:
- Always throw a more specific subclass of HivezException that describes the failure context.
- Avoid throwing raw Exception or Error types within Hivez internals.
- Use the message to provide actionable information for developers.
- Implemented types
- Implementers
Constructors
- HivezException(String message, {Object? cause, StackTrace? stackTrace})
-
Creates a new HivezException.
const
Properties
- cause → Object?
-
The optional underlying cause of this exception.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
A human-readable description of the failure.
final
- name → String
-
Returns the short class name of this exception for logging and debugging.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
The optional stack trace captured at the time this exception was created.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns a detailed string representation of this exception.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited