KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javolution > xml > XmlException


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

9 package javolution.xml;
10
11 /**
12  * <p> Signals that a problem of some sort has occurred when
13  * serializing/deserializaing an object from its XML representation.</p>
14  *
15  * @author <a HREF="mailto:jean-marie@dautelle.com">Jean-Marie Dautelle</a>
16  * @version 1.0, October 4, 2004
17  */

18 public class XmlException extends RuntimeException {
19
20     /**
21      * Constructs a <code>XmlException</code> with no detail message.
22      */

23     public XmlException() {
24         super();
25     }
26
27     /**
28      * Constructs a <code>XmlException</code> with the specified detail
29      * message.
30      *
31      * @param message the detail message.
32      */

33     public XmlException(String message) {
34         super(message);
35     }
36
37     /**
38      * Constructs a <code>XmlException</code> with the specified detail
39      * message and cause.
40      *
41      * @param message the detail message.
42      * @param cause the cause.
43      */

44     public XmlException(String message, Throwable cause) {
45         super(message + " caused by " + cause);
46     }
47
48     /**
49      * Constructs a <code>XmlException</code> with the specified cause.
50      *
51      * @param cause the cause.
52      */

53     public XmlException(Throwable cause) {
54         super("Constructor exception caused by " + cause.toString());
55     }
56
57     private static final long serialVersionUID = 3762814870390716212L;
58 }
Popular Tags