KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xslt > model > InvalidAttributeValueException


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 package org.netbeans.modules.xslt.model;
20
21
22 /**
23  * @author ads
24  *
25  */

26 public class InvalidAttributeValueException extends Exception JavaDoc {
27
28  
29     private static final long serialVersionUID = 5990879376051438447L;
30
31     /** {@inheritDoc} */
32     public InvalidAttributeValueException( String JavaDoc message, Throwable JavaDoc cause ) {
33         super(message, cause);
34     }
35
36     /** {@inheritDoc} */
37     public InvalidAttributeValueException( String JavaDoc message ) {
38         super(message);
39     }
40
41     /** {@inheritDoc} */
42     public InvalidAttributeValueException( Throwable JavaDoc throwable ) {
43         super( throwable );
44     }
45
46     /**
47      * Constructor with description message, invalid attribute value and cause.
48      * @param message description
49      * @param attributeValue invalid attribute value
50      * @param cause original cause of exception
51      */

52     public InvalidAttributeValueException( String JavaDoc message, String JavaDoc attributeValue,
53             Throwable JavaDoc cause )
54     {
55         this( message , cause );
56         myAttributeValue = attributeValue ;
57     }
58     
59     /**
60      * Constructor with description message and invalid attribute value.
61      * @param message description
62      * @param attributeValue invalid attribute value
63      */

64     public InvalidAttributeValueException( String JavaDoc message, String JavaDoc attributeValue )
65     {
66         this( message );
67         myAttributeValue = attributeValue ;
68     }
69     
70     /**
71      * @return invalid attribute value.
72      */

73     public String JavaDoc getAttributeValue() {
74         return myAttributeValue;
75     }
76     
77     private String JavaDoc myAttributeValue;
78 }
79
Popular Tags