/** * Returns either the held exception from the operation if it is set, otherwise the translated exception. * * @param opContext * an object used to track the execution of the operation * @return the exception to throw. */ protected final StorageException materializeException(final OperationContext opContext) { if (this.getException() != null) { return this.getException(); } return StorageException.translateException(this, null, opContext); }
/** * Returns either the held exception from the operation if it is set, otherwise the translated exception. * * @param request * the reference to the HttpURLConnection for the operation. * @param opContext * an object used to track the execution of the operation * @return the exception to throw. */ protected final StorageException materializeException(final OperationContext opContext) { if (this.getException() != null) { return this.getException(); } return StorageException.translateException(this, null, opContext); }
StorageException translatedException = StorageException.translateException(null, e, null); throw translatedException; StorageException translatedException = StorageException.translateException(null, e, null); throw translatedException; StorageException translatedException = StorageException.translateException(null, e, null); throw translatedException;
throw StorageException.translateException(null, e, null);
throw StorageException.translateException(null, e, null);
translatedException = StorageException.translateException(task, e, opContext); task.getResult().setException(translatedException);
translatedException = StorageException.translateException(task, e, opContext); task.getResult().setException(translatedException);