The exception due to the script running without required privilege to get access to certain system or platform resources. Such access can be denied by either the scripting engine or the underlying platform.
When instantiating an engine instance, the user may explicitly set platform access control in the form of a tuple: <bool: allowOrDeny, string category, string operation>. If started without any setting, the engine will have unrestricted access, but still be subject to the regulation by the platform beneath, such as JVM's Security Manager.
For more details on access control, see here.
Parent Class
Type | Name | Signature |
---|---|---|
constructor | UnderprivilegeException | public UnderprivilegeException(string) |
constructor | UnderprivilegeException | public UnderprivilegeException(System.HostingPlatformException) |
method | isCausedByPlatform | public bool isCausedByPlatform() |
public UnderprivilegeException(string msg)
Create an instance of UnderprivilegeException with specified category and operation name.
Parameters
public UnderprivilegeException(HostingPlatformException ex)
Create an instance of UnderprivilegeException with specified platform-born exception.
Parameters
public bool isCausedByPlatform()
Check whether the exception was caused by the platform or the engine.
Returns