KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > commons > lang > SerializationException


1 /*
2  * Copyright 2002-2005 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 package org.apache.commons.lang;
17
18 import org.apache.commons.lang.exception.NestableRuntimeException;
19
20 /**
21  * <p>Exception thrown when the Serialization process fails.</p>
22  *
23  * <p>The original error is wrapped within this one.</p>
24  *
25  * @author Stephen Colebourne
26  * @since 1.0
27  * @version $Id: SerializationException.java 161243 2005-04-14 04:30:28Z ggregory $
28  */

29 public class SerializationException extends NestableRuntimeException {
30
31     /**
32      * <p>Constructs a new <code>SerializationException</code> without specified
33      * detail message.</p>
34      */

35     public SerializationException() {
36         super();
37     }
38
39     /**
40      * <p>Constructs a new <code>SerializationException</code> with specified
41      * detail message.</p>
42      *
43      * @param msg The error message.
44      */

45     public SerializationException(String JavaDoc msg) {
46         super(msg);
47     }
48
49     /**
50      * <p>Constructs a new <code>SerializationException</code> with specified
51      * nested <code>Throwable</code>.</p>
52      *
53      * @param cause The <code>Exception</code> or <code>Error</code>
54      * that caused this exception to be thrown.
55      */

56     public SerializationException(Throwable JavaDoc cause) {
57         super(cause);
58     }
59
60     /**
61      * <p>Constructs a new <code>SerializationException</code> with specified
62      * detail message and nested <code>Throwable</code>.</p>
63      *
64      * @param msg The error message.
65      * @param cause The <code>Exception</code> or <code>Error</code>
66      * that caused this exception to be thrown.
67      */

68     public SerializationException(String JavaDoc msg, Throwable JavaDoc cause) {
69         super(msg, cause);
70     }
71
72 }
73
Popular Tags