Package org.opensaml.profile.action
Class EventException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opensaml.profile.action.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 Summary
Fields Modifier and Type Field Description private StringeventIDThe event ID.private static longserialVersionUIDSerial version UID.
-
Constructor Summary
Constructors Constructor Description EventException(String event)Constructor.EventException(String event, String message)Constructor.EventException(String event, String message, Throwable cause)Constructor.EventException(String event, Throwable cause)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEventID()Get the event ID represented by this exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
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 IDmessage- the exception details message
-
EventException
public EventException(@Nonnull String event, @Nullable Throwable cause)Constructor.- Parameters:
event- the event IDcause- the exception cause
-
-
Method Detail
-
getEventID
@Nonnull public String getEventID()
Get the event ID represented by this exception.- Returns:
- the event ID
-
-