From d4e2e05b31395fe3fbfe240d0609f34dc826cfaf Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 24 Aug 2009 16:40:25 -0600 Subject: [PATCH] add AccessControlException --- .../java/security/AccessControlException.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 classpath/java/security/AccessControlException.java diff --git a/classpath/java/security/AccessControlException.java b/classpath/java/security/AccessControlException.java new file mode 100644 index 0000000000..4a002ceabc --- /dev/null +++ b/classpath/java/security/AccessControlException.java @@ -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; + } +}