FrappeAuthException class abstract
Base class for all Frappe OAuth2 authentication exceptions
Provides a consistent error handling interface with error codes, messages, and original error context preservation.
Constructors
-
FrappeAuthException(String message, {String? code, dynamic originalError, StackTrace? originalStackTrace, Map<
String, dynamic> context = const {}}) -
const
Properties
- code → String?
-
Machine-readable error code for programmatic handling
final
-
context
→ Map<
String, dynamic> -
Additional context data about the error
final
- friendlyMessage → String
-
Creates a user-friendly error message
no setter
- hasCause → bool
-
Whether this exception was caused by another exception
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Human-readable error message
final
- originalError → dynamic
-
Original error that caused this exception (if any)
final
- originalStackTrace → StackTrace?
-
Stack trace from the original error (if any)
final
- 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.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited