com.vaadin.server
Class DefaultErrorHandler

java.lang.Object
  extended by com.vaadin.server.DefaultErrorHandler
All Implemented Interfaces:
ErrorHandler, java.io.Serializable

public class DefaultErrorHandler
extends java.lang.Object
implements ErrorHandler

See Also:
Serialized Form

Constructor Summary
DefaultErrorHandler()
           
 
Method Summary
static void doDefault(ErrorEvent event)
           
 void error(ErrorEvent event)
          Invoked when an error occurs.
static AbstractComponent findAbstractComponent(ErrorEvent event)
          Returns the AbstractComponent associated with the given error if such can be found
static Component findComponent(com.vaadin.shared.Connector connector)
          Finds the nearest component by traversing upwards in the hierarchy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorHandler

public DefaultErrorHandler()
Method Detail

error

public void error(ErrorEvent event)
Description copied from interface: ErrorHandler
Invoked when an error occurs.

Specified by:
error in interface ErrorHandler
Parameters:
event - the fired event.

doDefault

public static void doDefault(ErrorEvent event)

findAbstractComponent

public static AbstractComponent findAbstractComponent(ErrorEvent event)
Returns the AbstractComponent associated with the given error if such can be found

Parameters:
event - The error to investigate
Returns:
The AbstractComponent to error relates to or null if could not be determined or if the error does not relate to any AbstractComponent.

findComponent

public static Component findComponent(com.vaadin.shared.Connector connector)
Finds the nearest component by traversing upwards in the hierarchy. If connector is a Component, that Component is returned. Otherwise, looks upwards in the hierarchy until it finds a Component.

Returns:
A Component or null if no component was found


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.