AuthException constructor

AuthException(
  1. String message, {
  2. int statusCode = 401,
  3. String? stackTrace,
})

Creates an authentication exception

message A human-readable description of the authentication error statusCode HTTP status code (defaults to 401 for auth errors) stackTrace Optional stack trace for debugging purposes

Implementation

AuthException(
  super.message, {
  super.statusCode = 401,
  String? stackTrace,
}) : super(
        title: 'Authentication Error',
        type: 'auth_error',
        details: stackTrace,
      );