SecurityException class
Exception thrown for security violations
- Inheritance
-
- Object
- FhirAuthException
- SecurityException
Constructors
- SecurityException(String message, {String? details, Object? innerException, StackTrace? stackTrace, required SecurityViolationType securityViolationType})
-
Creates an exception for a detected security violation of the given
securityViolationType(e.g. CSRF, replay, tampered token).const
Properties
- details → String?
-
Additional details for debugging (not shown to end users)
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerException → Object?
-
Original exception that caused this error
finalinherited
- message → String
-
User-friendly error message
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- securityViolationType → SecurityViolationType
-
Type of security violation
final
- stackTrace → StackTrace?
-
Stack trace for debugging
finalinherited
- statusCode → int?
-
HTTP status code if applicable
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sanitized(
) → FhirAuthException -
Creates a sanitized version safe for user display
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited