Class ExceptionNotification

java.lang.Object
com.pnfsoftware.jeb.core.events.ClientNotification
com.pnfsoftware.jeb.core.events.ExceptionNotification

public class ExceptionNotification extends ClientNotification
A special type of ClientNotification, used to report (forward) exceptions or errors to the client(s).
  • Field Details

    • FLAG_SILT

      public static final int FLAG_SILT
      Suppress the client-side display of the exception notification.
      See Also:
    • FLAG_FUPL

      public static final int FLAG_FUPL
      Force the upload of the log when reporting the exception.
      See Also:
    • FLAG_DNUS

      public static final int FLAG_DNUS
      Prevent 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 reported
      message - optional message overriding the throwable message
      flags - bitmask made of FLAG_* values
      extradata - optional extra data forwarded to the client
    • ExceptionNotification

      public ExceptionNotification(Throwable throwable, String message, int flags)
      Create an exception notification.
      Parameters:
      throwable - exception being reported
      message - optional message overriding the throwable message
      flags - bitmask made of FLAG_* values
    • ExceptionNotification

      public ExceptionNotification(Throwable throwable, String message)
      Create an exception notification with no extra flags.
      Parameters:
      throwable - exception being reported
      message - optional message overriding the throwable message
  • Method Details

    • getThrowable

      public Throwable 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

      public Map<String,Object> getExtraData()
      Get the extra data map forwarded with the notification.
      Returns:
      the extra data map, or null if none was provided