Package gda.jython.accesscontrol
Class AccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
gda.device.DeviceException
gda.jython.accesscontrol.AccessDeniedException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringError message to use when a method call has been denied due to lack of baton -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class gda.device.DeviceException
getDevice, getDeviceNameMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
NOBATON_EXCEPTION_MESSAGE
Error message to use when a method call has been denied due to lack of baton- See Also:
-
-
Constructor Details
-
AccessDeniedException
Create an exception.- Parameters:
reason-
-