public class StorageInsertFailureException extends BucketStorageException
ERROR_CODE_CONFLICT, ERROR_CODE_INTERNAL_ERROR, ERROR_CODE_NOT_FOUND, ERROR_CODE_NOT_SET
Constructor and Description |
---|
StorageInsertFailureException(BucketStorageException e)
Creates a new instance of StorageInsertFailureException by copying the error code,
message, and cause from another
BucketStorageException . |
StorageInsertFailureException(java.lang.String msg,
java.lang.Throwable cause)
Creates a new instance of StorageInsertFailureException with the specified detail message.
|
StorageInsertFailureException(java.lang.Throwable cause)
Creates a new instance of StorageInsertFailureException
|
Modifier and Type | Method and Description |
---|---|
void |
addFailedObject(LocalAbstractObject failedObject)
Adds a failed object to this exception.
|
java.util.List<LocalAbstractObject> |
getFailedObjects()
Returns the list of objects that could not be inserted.
|
java.lang.String |
toString()
Returns a short description of this throwable.
|
getErrorCode, getHttpErrorCode, isHttpErrorCodeSet, setHttpErrorCode
public StorageInsertFailureException(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public StorageInsertFailureException(java.lang.String msg, java.lang.Throwable cause)
msg
- the detail messagecause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public StorageInsertFailureException(BucketStorageException e)
BucketStorageException
.e
- the exception to copy frompublic void addFailedObject(LocalAbstractObject failedObject)
failedObject
- the object that cannot be insertedpublic java.util.List<LocalAbstractObject> getFailedObjects()
public java.lang.String toString()
toString
in class java.lang.Throwable