mirror of
https://github.com/corda/corda.git
synced 2025-04-06 19:07:08 +00:00
add AccessControlException
This commit is contained in:
parent
3b30dccaac
commit
d4e2e05b31
28
classpath/java/security/AccessControlException.java
Normal file
28
classpath/java/security/AccessControlException.java
Normal file
@ -0,0 +1,28 @@
|
||||
/* Copyright (c) 2009, Avian Contributors
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software
|
||||
for any purpose with or without fee is hereby granted, provided
|
||||
that the above copyright notice and this permission notice appear
|
||||
in all copies.
|
||||
|
||||
There is NO WARRANTY for this software. See license.txt for
|
||||
details. */
|
||||
|
||||
package java.security;
|
||||
|
||||
public class AccessControlException extends SecurityException {
|
||||
private final Permission permission;
|
||||
|
||||
public AccessControlException(String message) {
|
||||
this(message, null);
|
||||
}
|
||||
|
||||
public AccessControlException(String message, Permission permission) {
|
||||
super(message);
|
||||
this.permission = permission;
|
||||
}
|
||||
|
||||
public Permission getPermission() {
|
||||
return permission;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user