/*******************************************************************************
* Copyright (c) 2006-2010 eBay Inc. All Rights Reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*******************************************************************************/
/**
*
*/
package org.ebayopensource.turmeric.runtime.binding.exception;
/**
* DeserializationException is thrown when an abnormal condition is detected during
* deserialization.
*
* @author wdeng
*
*/
public class DeserializationException extends BindingException {
/**
* serial version UID.
*/
static final long serialVersionUID = 0L;
/**
* Constructs a <code>DeserializationException</code> without an detail error message.
*/
public DeserializationException () {}
/**
* Constructs a <code>DeserializationException</code> with the specified detail
* message. The error message string <code>message</code> can later be
* retrieved by the <code>{@link java.lang.Throwable#getMessage}</code>
* method of class <code>java.lang.Throwable</code>.
*
* @param message the detail message.
*/
public DeserializationException (String message) {
super(message);
}
/**
* Constructs a <code>DeserializationException</code> with the specified detail
* message and cause. Note that the detail message associated with cause
* is not automatically incorporated into this exception's detail message.
*
* @param message - The detail message (which is saved for later
* retrieval by the <code>{@link java.lang.Throwable#getMessage}</code> method).
*
* @param t - The cause (which is saved for later retrieval by the
* <code>{@link java.lang.Throwable#getCause}</code> method).
* (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
*/
public DeserializationException (String message, Throwable t) {
super(message, t);
}
/**
* Constructs a DeserializationException with the specified cause and a detail message of
* <code>(cause==null ? null : cause.toString()) </code>
* (which typically contains the class and detail message of cause).
* This constructor is useful for DeserializationException that are little more
* than wrappers for other throwables.
*
* @param t - The cause (which is saved for later retrieval by the
* <code>{@link java.lang.Throwable#getCause}</code> method).
* (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
*
*/
public DeserializationException (Throwable t) {
super(t);
}
}