01: /**
02: * $Id: SSOAdapterException.java,v 1.3 2005/06/09 23:07:07 rakeshn Exp $
03: * Copyright 2002 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and iPlanet
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.ssoadapter;
14:
15: /**
16: * This class implements exception functionality
17: * for the SSOAdapter API.
18: *
19: * @version 1.0
20: * @see com.sun.ssoadapter.SSOAdapterFactory
21: * @see com.sun.ssoadapter.SSOAdapter
22: *
23: */
24:
25: public class SSOAdapterException extends Exception {
26:
27: /**
28: * If this is invalid, default is false
29: */
30: public boolean invalid = false;
31:
32: /**
33: * Default Constructor
34: */
35: public SSOAdapterException() {
36: super ();
37: }
38:
39: /**
40: * Constructor with an error message
41: * @param s ErrorMessage
42: */
43: public SSOAdapterException(String s) {
44: super (s);
45: }
46:
47: /**
48: * Constructor
49: * @param s ErrorMessage
50: * @param invalid If it is invalid
51: */
52: public SSOAdapterException(String s, boolean invalid) {
53: super (s);
54: this .invalid = invalid;
55: }
56:
57: /**
58: * The constructor
59: * @param message error Message
60: * @param cause cause of this exception , may be another excption , can be null
61: * @param invalid if invalid
62: */
63: public SSOAdapterException(String message, Throwable cause,
64: boolean invalid) {
65: super (message, cause);
66: this .invalid = invalid;
67: }
68:
69: /**
70: * true if invalid , false otherwise
71: * @return boolean , true if it is invalid else false
72: */
73: public boolean isInvalid() {
74: return invalid;
75: }
76:
77: }
|