Class EventException

  • All Implemented Interfaces:
    Serializable

    public class EventException
    extends Exception
    Runtime exception which may be used to communicate a specific event ID.
    See Also:
    Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serial version UID.
        See Also:
        Constant Field Values
      • eventID

        private final String eventID
        The event ID.
    • Constructor Detail

      • EventException

        public EventException​(@Nonnull
                              String event)
        Constructor.
        Parameters:
        event - the event ID
      • EventException

        public EventException​(@Nonnull
                              String event,
                              @Nullable
                              String message)
        Constructor.
        Parameters:
        event - the event ID
        message - the exception details message
      • EventException

        public EventException​(@Nonnull
                              String event,
                              @Nullable
                              Throwable cause)
        Constructor.
        Parameters:
        event - the event ID
        cause - the exception cause
      • EventException

        public EventException​(@Nonnull
                              String event,
                              @Nullable
                              String message,
                              @Nullable
                              Throwable cause)
        Constructor.
        Parameters:
        event - the event ID
        message - the exception details message
        cause - the exception cause
    • Method Detail

      • getEventID

        @Nonnull
        public String getEventID()
        Get the event ID represented by this exception.
        Returns:
        the event ID