Class AccessDeniedException

All Implemented Interfaces:
Serializable

public class AccessDeniedException extends DeviceException
Exception thrown by an gda.jython.accesscontrol.Interceptor class when a method call is rejected as the device being operated has a greater protection level than the authorisation level of the user making that method call.

This class extends DeviceException so that it will be caught by the try-catch blocks used around method calls to Devices

See Also:
  • Field Details

    • NOBATON_EXCEPTION_MESSAGE

      public static final String NOBATON_EXCEPTION_MESSAGE
      Error message to use when a method call has been denied due to lack of baton
      See Also:
  • Constructor Details

    • AccessDeniedException

      public AccessDeniedException(String reason)
      Create an exception.
      Parameters:
      reason -