org.jbehave.core.errors
Interface ErrorStrategy

All Known Subinterfaces:
PendingErrorStrategy
All Known Implementing Classes:
ErrorStrategyInWhichWeTrustTheReporter

public interface ErrorStrategy

ErrorStrategy allows to define error handling strategies. Two standard strategies are provided:


Field Summary
static ErrorStrategy RETHROW
          Strategy that rethrows the error
static ErrorStrategy SILENT
          Strategy that silently absorbs the error
 
Method Summary
 void handleError(java.lang.Throwable throwable)
           
 

Field Detail

SILENT

static final ErrorStrategy SILENT
Strategy that silently absorbs the error


RETHROW

static final ErrorStrategy RETHROW
Strategy that rethrows the error

Method Detail

handleError

void handleError(java.lang.Throwable throwable)
                 throws java.lang.Throwable
Throws:
java.lang.Throwable


Copyright © 2003-2010. All Rights Reserved.