KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > script > ExpressionUpdateException


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.script;
19
20 // java imports
21

22 // internal imports
23

24 // external imports
25

26 /**
27  * An exception thrown when an error occurs during an expression update.
28  */

29 public class ExpressionUpdateException
30     extends ExpressionEvaluationException {
31
32     /**
33      * Construct an ExpressionUpdateException.
34      */

35     public ExpressionUpdateException() {
36         super();
37     }
38
39     /**
40      * Construct an ExpressionUpdateException with the given message, failed expression, expected updated value,
41      * and expression that was used to perform the update.
42      *
43      * @param message a String containing the text of the exception message
44      * @param expression the expression whose update failed
45      * @param cause the <code>Throwable</code> that is wrapped as the cause of this exception
46      */

47     public ExpressionUpdateException(String JavaDoc message, String JavaDoc expression, Throwable JavaDoc cause) {
48         super(message, expression, cause);
49     }
50
51     /**
52      * Construct an ExpressionUpdateException with the given message, failed expression, expected updated value,
53      * and expression that was used to perform the update.
54      *
55      * @param message a String containing the text of the exception message
56      * @param expression the expression whose update failed
57      */

58     public ExpressionUpdateException(String JavaDoc message, String JavaDoc expression) {
59         super(message, expression);
60     }
61
62     /**
63      * Get the value that should have been written to the object
64      * referenced by the failed update expression. This method is deprecated
65      * and will always return null because of the security risk associated
66      * with making the value available.
67      *
68      * @return the failed update value
69      * @deprecated
70      */

71     public Object JavaDoc getUpdateValue() {
72         return null;
73     }
74 }
75
Popular Tags