Package org.teiid.client.util
Class ExceptionHolder
- java.lang.Object
-
- org.teiid.client.util.ExceptionHolder
-
- All Implemented Interfaces:
Externalizable,Serializable
public class ExceptionHolder extends Object implements Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExceptionHolder()ExceptionHolder(Throwable exception)ExceptionHolder(Throwable exception, boolean nested)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowablegetException()voidreadExternal(ObjectInput in)static List<ExceptionHolder>toExceptionHolders(List<? extends Throwable> throwables)static List<Throwable>toThrowables(List<ExceptionHolder> exceptionHolders)voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getException
public Throwable getException()
-
toExceptionHolders
public static List<ExceptionHolder> toExceptionHolders(List<? extends Throwable> throwables)
-
toThrowables
public static List<Throwable> toThrowables(List<ExceptionHolder> exceptionHolders)
-
-