Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jaxws/src/share/jaxws_classes/javax/xml/bind/UnmarshalException.java
38890 views
1
/*
2
* Copyright (c) 2003, 2013, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
package javax.xml.bind;
27
28
/**
29
* This exception indicates that an error has occurred while performing
30
* an unmarshal operation that prevents the JAXB Provider from completing
31
* the operation.
32
*
33
* <p>
34
* The <tt>ValidationEventHandler</tt> can cause this exception to be thrown
35
* during the unmarshal operations. See
36
* {@link ValidationEventHandler#handleEvent(ValidationEvent)
37
* ValidationEventHandler.handleEvent(ValidationEvent)}.
38
*
39
* @author <ul><li>Ryan Shoemaker, Sun Microsystems, Inc.</li></ul>
40
* @see JAXBException
41
* @see Unmarshaller
42
* @see ValidationEventHandler
43
* @since JAXB1.0
44
*/
45
public class UnmarshalException extends JAXBException {
46
47
/**
48
* Construct an UnmarshalException with the specified detail message. The
49
* errorCode and linkedException will default to null.
50
*
51
* @param message a description of the exception
52
*/
53
public UnmarshalException( String message ) {
54
this( message, null, null );
55
}
56
57
/**
58
* Construct an UnmarshalException with the specified detail message and vendor
59
* specific errorCode. The linkedException will default to null.
60
*
61
* @param message a description of the exception
62
* @param errorCode a string specifying the vendor specific error code
63
*/
64
public UnmarshalException( String message, String errorCode ) {
65
this( message, errorCode, null );
66
}
67
68
/**
69
* Construct an UnmarshalException with a linkedException. The detail message and
70
* vendor specific errorCode will default to null.
71
*
72
* @param exception the linked exception
73
*/
74
public UnmarshalException( Throwable exception ) {
75
this( null, null, exception );
76
}
77
78
/**
79
* Construct an UnmarshalException with the specified detail message and
80
* linkedException. The errorCode will default to null.
81
*
82
* @param message a description of the exception
83
* @param exception the linked exception
84
*/
85
public UnmarshalException( String message, Throwable exception ) {
86
this( message, null, exception );
87
}
88
89
/**
90
* Construct an UnmarshalException with the specified detail message, vendor
91
* specific errorCode, and linkedException.
92
*
93
* @param message a description of the exception
94
* @param errorCode a string specifying the vendor specific error code
95
* @param exception the linked exception
96
*/
97
public UnmarshalException( String message, String errorCode, Throwable exception ) {
98
super( message, errorCode, exception );
99
}
100
101
}
102
103