org.fest.swing.exception
Class UnexpectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.fest.swing.exception.UnexpectedException
All Implemented Interfaces:
Serializable

public class UnexpectedException
extends RuntimeException

Understands an exception thrown when an unexpected error occurs.

Author:
Alex Ruiz, Yvonne Wang
See Also:
Serialized Form

Constructor Summary
UnexpectedException(String message, Throwable cause)
          Creates a new UnexpectedException.
UnexpectedException(Throwable cause)
          Creates a new UnexpectedException.
 
Method Summary
static UnexpectedException unexpected(Throwable cause)
          Returns a UnexpectedException.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnexpectedException

public UnexpectedException(Throwable cause)
Creates a new UnexpectedException.

Parameters:
cause - the unexpected exception.

UnexpectedException

public UnexpectedException(String message,
                           Throwable cause)
Creates a new UnexpectedException.

Parameters:
message - the detail message.
cause - the unexpected exception.
Method Detail

unexpected

public static UnexpectedException unexpected(Throwable cause)
Returns a UnexpectedException.

Parameters:
cause - the unexpected exception.
Returns:
the created exception.


Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.