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 Throwable
getException()
void
readExternal(ObjectInput in)
static List<ExceptionHolder>
toExceptionHolders(List<? extends Throwable> throwables)
static List<Throwable>
toThrowables(List<ExceptionHolder> exceptionHolders)
void
writeExternal(ObjectOutput out)
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in 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)
-
-