Class I18NInterruptedException

  • All Implemented Interfaces:
    Serializable, I18NThrowable

    public class I18NInterruptedException
    extends I18NException
    An internationalized exception indicating interruption.
    Since:
    0.5.0
    Version:
    $Id: I18NInterruptedException.java 16154 2012-07-14 16:34:05Z colin $
    Author:
    tlerios@marketcetera.com
    See Also:
    Serialized Form
    • Constructor Detail

      • I18NInterruptedException

        public I18NInterruptedException()
        Constructs a new throwable with the default interruption message and no underlying cause.
      • I18NInterruptedException

        public I18NInterruptedException​(Throwable cause)
        Constructs a new throwable with the default interruption message and the given underlying cause.
        Parameters:
        cause - The cause.
      • I18NInterruptedException

        public I18NInterruptedException​(I18NBoundMessage message)
        Constructs a new throwable with the given message, but without an underlying cause.
        Parameters:
        message - The message.
      • I18NInterruptedException

        public I18NInterruptedException​(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 I18NInterruptedException
        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.
        Throws:
        I18NInterruptedException - Thrown if the calling thread was interrupted.
      • checkInterruption

        public static void checkInterruption​(Throwable cause)
                                      throws I18NInterruptedException
        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:
        I18NInterruptedException - Thrown if the calling thread was interrupted.
      • checkInterruption

        public static void checkInterruption​(I18NBoundMessage message)
                                      throws I18NInterruptedException
        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:
        I18NInterruptedException - Thrown if the calling thread was interrupted.
      • checkInterruption

        public static void checkInterruption​(Throwable cause,
                                             I18NBoundMessage message)
                                      throws I18NInterruptedException
        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:
        I18NInterruptedException - Thrown if the calling thread was interrupted.