com.gitee.jmash.propertyset.PropertyImplementationException Maven / Gradle / Ivy
/*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
package com.gitee.jmash.propertyset;
/**
* Thrown if a specific implementation exception is thrown
* (such as EJBException, RemoteException, NamingException, IOException, etc).
*
* A specific Exception can be wrapped in this Exception, by being
* passed to the constructor. It can be retrieved via
* {@link #getRootCause()} .
*
* @author Joe Walnes
* @version $Revision: 146 $
*/
public class PropertyImplementationException extends PropertyException {
//~ Instance fields ////////////////////////////////////////////////////////
private static final long serialVersionUID = 1L;
protected Throwable original;
//~ Constructors ///////////////////////////////////////////////////////////
public PropertyImplementationException() {
super();
}
public PropertyImplementationException(String msg) {
super(msg);
}
public PropertyImplementationException(String msg, Throwable original) {
super(msg);
this.original = original;
}
public PropertyImplementationException(Throwable original) {
this(original.getLocalizedMessage(), original);
}
//~ Methods ////////////////////////////////////////////////////////////////
/**
* Retrieve original Exception.
*/
public Throwable getRootCause() {
return original;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy