01: /* Copyright 2001, 2004 The JA-SIG Collaborative. All rights reserved.
02: * See license distributed with this file and
03: * available online at http://www.uportal.org/license.html
04: */
05:
06: package org.jasig.portal;
07:
08: /**
09: * This exception informs uPortal that an authorization violation has occured
10: * within a channel.
11: * @author Peter Kharchenko
12: * @version $Revision: 35418 $ $Date: 2005-03-07 13:09:07 -0700 (Mon, 07 Mar 2005) $
13: */
14:
15: public class AuthorizationException extends PortalException {
16:
17: /**
18: * Instantiate an AuthorizationException.
19: * @deprecated - use instead a constructor that provides a message or
20: * cause.
21: */
22: public AuthorizationException() {
23: super ();
24: }
25:
26: /**
27: * Instantiate an AuthorizationException with the given cause.
28: * @param cause defines the causing Throwable of the authorization violation.
29: */
30: public AuthorizationException(Throwable cause) {
31: super (cause);
32: }
33:
34: /**
35: * Instantiate an AuthorizationException with the given explanatory message.
36: * @param msg explains the nature of the attempted authorization violation.
37: */
38: public AuthorizationException(String msg) {
39: super (msg);
40: }
41:
42: /**
43: * Instantiate an AuthorizationException with an explanatory message and
44: * an underlying Throwable cause.
45: * @param msg explains the nature of the attempted authorization violation.
46: * @param cause - an underlying cause of this Exception.
47: */
48: public AuthorizationException(String msg, Throwable cause) {
49: super (msg, cause);
50: }
51:
52: /**
53: * Instantiate an AuthorizationException with an explanatory message and
54: * indicating whether channel refresh and channel reinstantiation are
55: * appropriate responses.
56: * @param msg - explanatory message
57: * @param refresh - true if refresh is appropriate response
58: * @param reinstantiate - true if reinstantiate is appropriate response
59: */
60: public AuthorizationException(String msg, boolean refresh,
61: boolean reinstantiate) {
62: super(msg, refresh, reinstantiate);
63: }
64:
65: }
|