@Override public String toString() { return "ErrorBearingStorageObject [key=" + getKey() + ", throwable=" + throwable + "]"; }
public void run() { try { if (headOnly) { result = storageService.getObjectDetails( bucketName, objectKey, null, null, null, null); } else { result = storageService.getObject( bucketName, objectKey); } } catch (ServiceException e) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) { result = new ThrowableBearingStorageObject(this.objectKey, e); } else { result = e; } } }
public void run() { try { if (headOnly) { result = storageService.getObjectDetails( bucketName, objectKey, null, null, null, null); } else { result = storageService.getObject( bucketName, objectKey); } } catch (ServiceException e) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(e)) { result = new ThrowableBearingStorageObject(this.objectKey, e); } else { result = e; } } }
} catch (Throwable t) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(t)) { result = new ThrowableBearingStorageObject(this.objectKey, t); } else { result = t;
@Override public String toString() { return "ErrorBearingStorageObject [key=" + getKey() + ", throwable=" + throwable + "]"; }
} catch (Throwable t) { if (this.errorPermitter != null && this.errorPermitter.isPermitted(t)) { result = new ThrowableBearingStorageObject(this.objectKey, t); } else { result = t;