org.omnaest.utils.operation.special
Class OperationExceptionHandledResult<RESULT,PARAMETER>

java.lang.Object
  extended by org.omnaest.utils.operation.special.OperationExceptionHandledResult<RESULT,PARAMETER>
Type Parameters:
RESULT -
PARAMETER -
All Implemented Interfaces:
Operation<ExceptionHandledResult<RESULT>,PARAMETER>

public class OperationExceptionHandledResult<RESULT,PARAMETER>
extends Object
implements Operation<ExceptionHandledResult<RESULT>,PARAMETER>

Operation which will catch any occurring Exception and return an ExceptionHandledResult

Author:
Omnaest
See Also:
OperationExceptionHandled

Field Summary
protected  Operation<RESULT,PARAMETER> operation
           
 
Constructor Summary
OperationExceptionHandledResult(Operation<RESULT,PARAMETER> operation)
           
 
Method Summary
 ExceptionHandledResult<RESULT> execute(PARAMETER parameter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

operation

protected final Operation<RESULT,PARAMETER> operation
Constructor Detail

OperationExceptionHandledResult

public OperationExceptionHandledResult(Operation<RESULT,PARAMETER> operation)
Parameters:
operation -
See Also:
OperationExceptionHandledResult
Method Detail

execute

public ExceptionHandledResult<RESULT> execute(PARAMETER parameter)
Specified by:
execute in interface Operation<ExceptionHandledResult<RESULT>,PARAMETER>


Copyright © 2013. All Rights Reserved.