Package org.nuxeo.ecm.quota.size
Class QuotaExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.nuxeo.ecm.core.api.NuxeoException
-
- org.nuxeo.ecm.core.api.RecoverableClientException
-
- org.nuxeo.ecm.quota.size.QuotaExceededException
-
- All Implemented Interfaces:
Serializable
public class QuotaExceededException extends RecoverableClientException
Exception throws by theDocumentsSizeUpdater
to enforce Quotas in case a transaction tries to add too much Blobs- Since:
- 5.6
- Author:
- Tiry
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nuxeo.ecm.core.api.RecoverableClientException
RecoverableClientException.Severity
-
-
Field Summary
Fields Modifier and Type Field Description protected String
addedDocumentID
protected long
quotaValue
protected String
targetPath
-
Fields inherited from class org.nuxeo.ecm.core.api.RecoverableClientException
localizedMessage, params, severity
-
Fields inherited from class org.nuxeo.ecm.core.api.NuxeoException
statusCode
-
-
Constructor Summary
Constructors Constructor Description QuotaExceededException(String targetDocumentPath, String addedDocumentID, long quotaValue)
QuotaExceededException(DocumentModel targetDocument, String message)
QuotaExceededException(DocumentModel targetDocument, DocumentModel addedDocument, long quotaValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAddedDocumentID()
long
getQuotaValue()
String
getTargetPath()
static boolean
isQuotaExceededException(Throwable e)
static QuotaExceededException
unwrap(Throwable e)
-
Methods inherited from class org.nuxeo.ecm.core.api.RecoverableClientException
geLocalizedMessageParams, getLocalizedMessage, getSeverity, setSeverity
-
Methods inherited from class org.nuxeo.ecm.core.api.NuxeoException
addInfo, getInfos, getMessage, getOriginalMessage, getStatusCode
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
QuotaExceededException
public QuotaExceededException(DocumentModel targetDocument, String message)
-
QuotaExceededException
public QuotaExceededException(DocumentModel targetDocument, DocumentModel addedDocument, long quotaValue)
-
-
Method Detail
-
getQuotaValue
public long getQuotaValue()
-
getTargetPath
public String getTargetPath()
-
getAddedDocumentID
public String getAddedDocumentID()
-
unwrap
public static QuotaExceededException unwrap(Throwable e)
-
isQuotaExceededException
public static boolean isQuotaExceededException(Throwable e)
-
-