org.omnaest.utils.events.exception.basic
Class ExceptionHandlerBooleanState

java.lang.Object
  extended by org.omnaest.utils.events.exception.basic.ExceptionHandlerBooleanState
All Implemented Interfaces:
Serializable, ExceptionHandler, ExceptionHandlerSerializable

public class ExceptionHandlerBooleanState
extends Object
implements ExceptionHandlerSerializable

ExceptionHandlerSerializable holding an internal state flag. If any Exception has been handled hasNoErrors() will return false until resetState() is called

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
ExceptionHandlerBooleanState()
           
 
Method Summary
 void handleException(Exception e)
          Handles the given Exception
 boolean hasNoErrors()
           
 void resetState()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerBooleanState

public ExceptionHandlerBooleanState()
Method Detail

handleException

public void handleException(Exception e)
Description copied from interface: ExceptionHandler
Handles the given Exception

Specified by:
handleException in interface ExceptionHandler
Parameters:
e - Exception

hasNoErrors

public boolean hasNoErrors()

resetState

public void resetState()


Copyright © 2013. All Rights Reserved.