KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > saxon > value > ValidationErrorValue


1 package net.sf.saxon.value;
2
3 import net.sf.saxon.type.ValidationException;
4
5 /**
6  * An ErrorValue is a value that has failed validation. It is used by methods that can either
7  * return a value or an error. The class is also used delay reporting of errors in expressions
8  * that have been evaluated early.
9  */

10
11 public class ValidationErrorValue extends ObjectValue {
12
13     public ValidationErrorValue(ValidationException err) {
14         super(err);
15     }
16
17     public ValidationException getException() {
18         return (ValidationException)getObject();
19     }
20 }
21
22 //
23
// The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License");
24
// you may not use this file except in compliance with the License. You may obtain a copy of the
25
// License at http://www.mozilla.org/MPL/
26
//
27
// Software distributed under the License is distributed on an "AS IS" basis,
28
// WITHOUT WARRANTY OF ANY KIND, either express or implied.
29
// See the License for the specific language governing rights and limitations under the License.
30
//
31
// The Original Code is: all this file.
32
//
33
// The Initial Developer of the Original Code is Michael H. Kay.
34
//
35
// Portions created by (your name) are Copyright (C) (your legal entity). All Rights Reserved.
36
//
37
// Contributor(s): none.
38
//
39
Popular Tags