KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > commands > SerializationException


1 /*******************************************************************************
2  * Copyright (c) 2004, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.commands;
12
13 import org.eclipse.core.commands.common.CommandException;
14
15 /**
16  * Signals that an exception occured while serializing a
17  * {@link ParameterizedCommand} to a string or deserializing a String to a
18  * {@link ParameterizedCommand}.
19  * <p>
20  * This class is not intended to be extended by clients.
21  * </p>
22  *
23  * @since 3.2
24  */

25 public final class SerializationException extends CommandException {
26
27     /**
28      * Generated serial version UID for this class.
29      */

30     private static final long serialVersionUID = 2691599674561684949L;
31
32     /**
33      * Creates a new instance of this class with the specified detail message.
34      *
35      * @param message
36      * the detail message; may be <code>null</code>.
37      */

38     public SerializationException(final String JavaDoc message) {
39         super(message);
40     }
41     
42     /**
43      * Creates a new instance of this class with the specified detail message
44      * and cause.
45      *
46      * @param message
47      * the detail message; may be <code>null</code>.
48      * @param cause
49      * the cause; may be <code>null</code>.
50      */

51     public SerializationException(final String JavaDoc message, final Throwable JavaDoc cause) {
52         super(message, cause);
53     }
54 }
55
Popular Tags