Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/sun/xacml/cond/FunctionTypeException.java


1   
2   /*
3    * @(#)FunctionTypeException.java
4    *
5    * Copyright 2003-2004 Sun Microsystems, Inc. All Rights Reserved.
6    *
7    * Redistribution and use in source and binary forms, with or without
8    * modification, are permitted provided that the following conditions are met:
9    *
10   *   1. Redistribution of source code must retain the above copyright notice,
11   *      this list of conditions and the following disclaimer.
12   * 
13   *   2. Redistribution in binary form must reproduce the above copyright
14   *      notice, this list of conditions and the following disclaimer in the
15   *      documentation and/or other materials provided with the distribution.
16   *
17   * Neither the name of Sun Microsystems, Inc. or the names of contributors may
18   * be used to endorse or promote products derived from this software without
19   * specific prior written permission.
20   * 
21   * This software is provided "AS IS," without a warranty of any kind. ALL
22   * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING
23   * ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
24   * OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN MICROSYSTEMS, INC. ("SUN")
25   * AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
26   * AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS
27   * DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST
28   * REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL,
29   * INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY
30   * OF LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE,
31   * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32   *
33   * You acknowledge that this software is not designed or intended for use in
34   * the design, construction, operation or maintenance of any nuclear facility.
35   */
36  
37  package com.sun.xacml.cond;
38  
39  
40  /**
41   * Exception that gets thrown if one of the createFunction methods on the
42   * <code>FunctionFactory</code> was called, but the other method should have
43   * been called instead.
44   *
45   * @since 1.0
46   * @author Seth Proctor
47   */
48  public class FunctionTypeException extends Exception
49  {
50  
51      /**
52       * Constructs a new <code>FunctionTypeException</code> with no message
53       * or cause.
54       */
55      public FunctionTypeException() {
56  
57      }
58  
59      /**
60       * Constructs a new <code>FunctionTypeException</code> with a message,
61       * but no cause. The message is saved for later retrieval by the
62       * {@link java.lang#Throwable.getMessage() Throwable.getMessage()}
63       * method.
64       *
65       * @param message the detail message (<code>null</code> if nonexistent
66       *                or unknown)
67       */
68      public FunctionTypeException(String message) {
69          super(message);
70      }
71  
72      /**
73       * Constructs a new <code>FunctionTypeException</code> with a cause,
74       * but no message. The cause is saved for later retrieval by the
75       * {@link java.lang#Throwable.getCause() Throwable.getCause()}
76       * method.
77       *
78       * @param cause the cause (<code>null</code> if nonexistent
79       *              or unknown)
80       */
81      public FunctionTypeException(Throwable cause) {
82          super(cause);
83      }
84  
85      /**
86       * Constructs a new <code>FunctionTypeException</code> with a message
87       * and a cause. The message and cause are saved for later retrieval
88       * by the
89       * {@link java.lang#Throwable.getMessage() Throwable.getMessage()} and
90       * {@link java.lang#Throwable.getCause() Throwable.getCause()}
91       * methods.
92       *
93       * @param message the detail message (<code>null</code> if nonexistent
94       *                or unknown)
95       * @param cause the cause (<code>null</code> if nonexistent
96       *              or unknown)
97       */
98      public FunctionTypeException(String message, Throwable cause) {
99          super(message, cause);
100     }
101 
102 }