Package org.marketcetera.util.except
Class I18NInterruptedRuntimeException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.marketcetera.util.except.I18NRuntimeException
-
- org.marketcetera.util.except.I18NInterruptedRuntimeException
-
- All Implemented Interfaces:
Serializable,I18NThrowable
public class I18NInterruptedRuntimeException extends I18NRuntimeException
An internationalized runtime exception indicating interruption.- Since:
- 0.5.0
- Version:
- $Id: I18NInterruptedRuntimeException.java 16154 2012-07-14 16:34:05Z colin $
- Author:
- tlerios@marketcetera.com
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description I18NInterruptedRuntimeException()Constructs a new throwable with the default interruption message and no underlying cause.I18NInterruptedRuntimeException(Throwable cause)Constructs a new throwable with the default interruption message and the given underlying cause.I18NInterruptedRuntimeException(Throwable cause, I18NBoundMessage message)Constructs a new throwable with the given message and underlying cause.I18NInterruptedRuntimeException(I18NBoundMessage message)Constructs a new throwable with the given message, but without an underlying cause.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckInterruption()Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor.static voidcheckInterruption(Throwable cause)Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor.static voidcheckInterruption(Throwable cause, I18NBoundMessage message)Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor.static voidcheckInterruption(I18NBoundMessage message)Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor.-
Methods inherited from class org.marketcetera.util.except.I18NRuntimeException
equals, getDetail, getI18NBoundMessage, getLocalizedDetail, getLocalizedMessage, getMessage, hashCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.marketcetera.util.except.I18NThrowable
getCause
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
I18NInterruptedRuntimeException
public I18NInterruptedRuntimeException()
Constructs a new throwable with the default interruption message and no underlying cause.
-
I18NInterruptedRuntimeException
public I18NInterruptedRuntimeException(Throwable cause)
Constructs a new throwable with the default interruption message and the given underlying cause.- Parameters:
cause- The cause.
-
I18NInterruptedRuntimeException
public I18NInterruptedRuntimeException(I18NBoundMessage message)
Constructs a new throwable with the given message, but without an underlying cause.- Parameters:
message- The message.
-
I18NInterruptedRuntimeException
public I18NInterruptedRuntimeException(Throwable cause, I18NBoundMessage message)
Constructs a new throwable with the given message and underlying cause.- Parameters:
cause- The cause.message- The message.
-
-
Method Detail
-
checkInterruption
public static void checkInterruption() throws I18NInterruptedRuntimeExceptionChecks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor. The interrupted status of the thread is cleared.- Throws:
I18NInterruptedRuntimeException- Thrown if the calling thread was interrupted.
-
checkInterruption
public static void checkInterruption(Throwable cause) throws I18NInterruptedRuntimeException
Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor. The interrupted status of the thread is cleared.- Parameters:
cause- The cause.- Throws:
I18NInterruptedRuntimeException- Thrown if the calling thread was interrupted.
-
checkInterruption
public static void checkInterruption(I18NBoundMessage message) throws I18NInterruptedRuntimeException
Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor. The interrupted status of the thread is cleared.- Parameters:
message- The message.- Throws:
I18NInterruptedRuntimeException- Thrown if the calling thread was interrupted.
-
checkInterruption
public static void checkInterruption(Throwable cause, I18NBoundMessage message) throws I18NInterruptedRuntimeException
Checks whether the calling thread has been interrupted, and, if so, throws an exception built using the associated constructor. The interrupted status of the thread is cleared.- Parameters:
cause- The cause.message- The message.- Throws:
I18NInterruptedRuntimeException- Thrown if the calling thread was interrupted.
-
-