org.jets3t.service.multi
Class ErrorPermitter

java.lang.Object
  extended by org.jets3t.service.multi.ErrorPermitter

public class ErrorPermitter
extends java.lang.Object

Performs logic to determine whether a given error should be "permitted" by compatible parts of the JetS3t multipart service infrastructure. Permitted errors will result in a ThrowableBearingStorageObject being generated instead of an operation being cancelled by a raised exception.


Constructor Summary
ErrorPermitter()
           
 
Method Summary
 boolean isPermitted(ServiceException serviceException)
          Returns true in all cases.
 boolean isPermitted(java.lang.Throwable throwable)
          Returns true in all cases.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorPermitter

public ErrorPermitter()
Method Detail

isPermitted

public boolean isPermitted(java.lang.Throwable throwable)
Returns true in all cases. Override this class and method to perform sensible logic.

Parameters:
throwable -
Returns:
true if error should be permitted

isPermitted

public boolean isPermitted(ServiceException serviceException)
Returns true in all cases. Override this class and method to perform sensible logic.

Parameters:
serviceException -
Returns:
true if error should be permitted