org.fest.swing.exception
Class ComponentLookupException

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

public class ComponentLookupException
extends RuntimeException

Understands an error thrown when looking up a component using a ComponentFinder.

Author:
Alex Ruiz
See Also:
Serialized Form

Constructor Summary
ComponentLookupException(String message)
          Creates a new ComponentLookupException.
ComponentLookupException(String message, Collection<? extends Component> found)
          Creates a new ComponentLookupException.
 
Method Summary
 Collection<? extends Component> found()
          Returns the Components found by the lookup (if any.)
 
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

ComponentLookupException

public ComponentLookupException(String message,
                                Collection<? extends Component> found)
Creates a new ComponentLookupException.

Parameters:
message - the detail message.
found - the Components found by the lookup (if any.)

ComponentLookupException

public ComponentLookupException(String message)
Creates a new ComponentLookupException.

Parameters:
message - the detail message.
Method Detail

found

public final Collection<? extends Component> found()
Returns the Components found by the lookup (if any.)

Returns:
the Components found by the lookup (if any.)


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