Class CalendarFeedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.exoplatform.agenda.util.CalendarFeedException
All Implemented Interfaces:
Serializable

public class CalendarFeedException extends Exception
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 Details

  • Constructor Details

    • CalendarFeedException

      public CalendarFeedException(String reason)
      Builds the exception for a reason.
      Parameters:
      reason - one of the reason constants
    • CalendarFeedException

      public CalendarFeedException(String reason, Throwable cause)
      Builds the exception for a reason, keeping its cause for the logs.
      Parameters:
      reason - one of the reason constants
      cause - what failed
  • Method Details

    • getReason

      public String getReason()
      Returns:
      the reason, one of the constants
    • getCode

      public String getCode()
      Returns:
      the full message code, agenda.calendarSubscription.<reason>