Package org.exoplatform.caldav.service
Class CaldavShareException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.exoplatform.caldav.service.CaldavShareException
- All Implemented Interfaces:
Serializable
A share of a calendar that could not be read, granted or removed for a
reason that is neither the caller's request nor their rights: the account,
the server's capability, or the server's own answer (EXO-90253).
The code is the contract, the one the browser translates; the preconditions and privileges are what the server said when it refused, so the refusal can be shown as the server stated it rather than as a generic failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCaldavShareException(String code) A failure named by its code alone.CaldavShareException(String code, Throwable cause) A failure named by its code, with its cause.CaldavShareException(String code, List<String> preconditions, List<String> missingPrivileges, Throwable cause) A refusal the server explained. -
Method Summary
Modifier and TypeMethodDescriptiongetCode()The message code the browser translates.The privileges the server said were missing.What the server's refusal named.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CaldavShareException
A failure named by its code alone.- Parameters:
code- the message code
-
CaldavShareException
A failure named by its code, with its cause.- Parameters:
code- the message codecause- what went wrong underneath
-
CaldavShareException
public CaldavShareException(String code, List<String> preconditions, List<String> missingPrivileges, Throwable cause) A refusal the server explained.- Parameters:
code- the message codepreconditions- the preconditions the server's error body namedmissingPrivileges- the privileges it said were missingcause- what went wrong underneath, may be null
-
-
Method Details
-
getCode
The message code the browser translates.- Returns:
- the code
-
getPreconditions
What the server's refusal named.- Returns:
- the preconditions, possibly empty
-
getMissingPrivileges
The privileges the server said were missing.- Returns:
- the privileges, possibly empty
-