Package com.pnfsoftware.jeb.core.events
Class ExceptionNotification
java.lang.Object
com.pnfsoftware.jeb.core.events.ClientNotification
com.pnfsoftware.jeb.core.events.ExceptionNotification
A special type of
ClientNotification, used to report (forward) exceptions or errors to the
client(s).-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionExceptionNotification(Throwable throwable, String message) Create an exception notification with no extra flags.ExceptionNotification(Throwable throwable, String message, int flags) Create an exception notification.Create an error-level notification embedding a stack trace. -
Method Summary
Modifier and TypeMethodDescriptionGet the extra data map forwarded with the notification.intgetFlags()Get the notification flags.Get the reported throwable.Methods inherited from class com.pnfsoftware.jeb.core.events.ClientNotification
getLevel, getMessage
-
Field Details
-
FLAG_SILT
public static final int FLAG_SILTSuppress the client-side display of the exception notification.- See Also:
-
FLAG_FUPL
public static final int FLAG_FUPLForce the upload of the log when reporting the exception.- See Also:
-
FLAG_DNUS
public static final int FLAG_DNUSPrevent sample upload when reporting the exception.- See Also:
-
-
Constructor Details
-
ExceptionNotification
public ExceptionNotification(Throwable throwable, String message, int flags, Map<String, Object> extradata) Create an error-level notification embedding a stack trace.- Parameters:
throwable- exception being reportedmessage- optional message overriding the throwable messageflags- bitmask made ofFLAG_*valuesextradata- optional extra data forwarded to the client
-
ExceptionNotification
Create an exception notification.- Parameters:
throwable- exception being reportedmessage- optional message overriding the throwable messageflags- bitmask made ofFLAG_*values
-
ExceptionNotification
Create an exception notification with no extra flags.- Parameters:
throwable- exception being reportedmessage- optional message overriding the throwable message
-
-
Method Details
-
getThrowable
Get the reported throwable.- Returns:
- the throwable object
-
getFlags
public int getFlags()Get the notification flags.- Returns:
- a bitmask made of
FLAG_*values
-
getExtraData
Get the extra data map forwarded with the notification.- Returns:
- the extra data map, or
nullif none was provided
-