Class NoPermissionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NoPermissionException
    extends SecurityException
    exception related with Security context and thrown if a permission is missing for context execution
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NoPermissionException​(Security security, java.lang.String operationAttempt, java.lang.String missingPermission)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NoPermissionException

        public NoPermissionException​(Security security,
                                     java.lang.String operationAttempt,
                                     java.lang.String missingPermission)
        Parameters:
        security - applied
        operationAttempt - being checked for permission
        missingPermission - which leads to this exception, space separated
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable