Package org.pipecraft.pipes.exceptions
Class InternalPipeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.pipecraft.pipes.exceptions.PipeException
-
- org.pipecraft.pipes.exceptions.InternalPipeException
-
- All Implemented Interfaces:
Serializable
public class InternalPipeException extends PipeException
A pipe exception resulting from a runtime error. Usually used for communicating the error to another thread, so that the corresponding runtime exception can be thrown in that thread.- Author:
- Eyal Schneider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternalPipeException(RuntimeException cause)InternalPipeException(String msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuntimeExceptiongetRuntimeException()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InternalPipeException
public InternalPipeException(String msg)
-
InternalPipeException
public InternalPipeException(RuntimeException cause)
-
-
Method Detail
-
getRuntimeException
public RuntimeException getRuntimeException()
- Returns:
- The runtime exception being wrapped. Intended to be thrown in the right context.
-
-