Class UnauthorizedAccessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
mg.emberframework.core.exception.UnauthorizedAccessException
All Implemented Interfaces:
Serializable

public class UnauthorizedAccessException extends Exception
Thrown when a user lacks the required authorization to access a resource.

This exception indicates that the current user does not have the necessary roles or permissions, as defined by @RequiredRole, to proceed.

Since:
1.0.0
Version:
1.0.0
Author:
Sandratra NIAINA
See Also:
  • Constructor Details

    • UnauthorizedAccessException

      public UnauthorizedAccessException(String message)
      Constructs an exception with a detail message.
      Parameters:
      message - the detail message explaining the unauthorized access