org.assertj.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.assertj.swing.exception.ComponentLookupException
All Implemented Interfaces:
Serializable

public class ComponentLookupException
extends RuntimeException

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<Component> found()
           
 
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(@Nonnull
                                String message,
                                @Nonnull
                                Collection<? extends Component> found)
Creates a new ComponentLookupException.

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

ComponentLookupException

public ComponentLookupException(@Nonnull
                                String message)
Creates a new ComponentLookupException.

Parameters:
message - the detail message.
Method Detail

found

@Nonnull
public final Collection<Component> found()
Returns:
the AWT and Swing Components found by the lookup (if any.)


Copyright © 2014–2015 AssertJ. All rights reserved.