Package org.exoplatform.agenda.util
Class CalendarFeedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exoplatform.agenda.util.CalendarFeedException
- All Implemented Interfaces:
Serializable
Why a calendar link cannot be read (EXO-90278), as the message code the user
is shown:
agenda.calendarSubscription.<reason>. The message never
carries the URL, which may embed a secret.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA link of this eXo to a calendar the user already sees in their agenda through a space.static final StringPrefix of every message code.static final StringA user name or password in the URL.static final StringThe server answered with an error status.static final StringNot a usable absolute URL.static final StringA link of this eXo that opens nothing, or no longer does.static final StringThe answer looks like an iCalendar document but cannot be read.static final StringThe answer is not an iCalendar document.static final StringA link of this eXo to the user's own calendar.static final StringA port outside the allowed set.static final StringThe host resolves to an address the platform must not reach.static final StringA scheme other than http, https or webcal.static final StringThe answer took too long.static final StringThe answer is larger than allowed.static final StringToo many redirects.static final StringNo answer could be read.static final StringThe host resolves to nothing. -
Constructor Summary
ConstructorsConstructorDescriptionCalendarFeedException(String reason) Builds the exception for a reason.CalendarFeedException(String reason, Throwable cause) Builds the exception for a reason, keeping its cause for the logs. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
CODE_PREFIX
Prefix of every message code.- See Also:
-
INVALID_URL
Not a usable absolute URL.- See Also:
-
SCHEME_NOT_ALLOWED
A scheme other than http, https or webcal.- See Also:
-
PORT_NOT_ALLOWED
A port outside the allowed set.- See Also:
-
CREDENTIALS_IN_URL
A user name or password in the URL.- See Also:
-
REFUSED_ADDRESS
The host resolves to an address the platform must not reach.- See Also:
-
UNRESOLVABLE
The host resolves to nothing.- See Also:
-
UNREACHABLE
No answer could be read.- See Also:
-
TIMEOUT
The answer took too long.- See Also:
-
HTTP_ERROR
The server answered with an error status.- See Also:
-
TOO_LARGE
The answer is larger than allowed.- See Also:
-
TOO_MANY_REDIRECTS
Too many redirects.- See Also:
-
NOT_A_CALENDAR
The answer is not an iCalendar document.- See Also:
-
MALFORMED_CALENDAR
The answer looks like an iCalendar document but cannot be read.- See Also:
-
LINK_NOT_FOUND
A link of this eXo that opens nothing, or no longer does.- See Also:
-
OWN_CALENDAR
A link of this eXo to the user's own calendar.- See Also:
-
ALREADY_IN_AGENDA
A link of this eXo to a calendar the user already sees in their agenda through a space.- See Also:
-
-
Constructor Details
-
CalendarFeedException
Builds the exception for a reason.- Parameters:
reason- one of the reason constants
-
CalendarFeedException
Builds the exception for a reason, keeping its cause for the logs.- Parameters:
reason- one of the reason constantscause- what failed
-
-
Method Details
-
getReason
- Returns:
- the reason, one of the constants
-
getCode
- Returns:
- the full message code,
agenda.calendarSubscription.<reason>
-