public class

ClientNotification

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.events.ClientNotification

Class Overview

Event notification data for clients. Those objects are used by the back-end (including plugins) to notify clients of general purpose events.

Do not confuse with IUnitNotification.

Summary

Public Constructors
ClientNotification(String message)
Create a new information notification.
ClientNotification(String message, ClientNotificationLevel level)
Create a new notification.
ClientNotification(String message, Throwable throwable)
Create an error-level notification embedding a stack trace.
Public Methods
ClientNotificationLevel getLevel()
Get the notification level.
String getMessage()
Get the notification message.
Throwable getThrowable()
Get the attached throwable, possibly non-null for error-level notifications.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ClientNotification (String message)

Create a new information notification.

Parameters
message the notification message

public ClientNotification (String message, ClientNotificationLevel level)

Create a new notification.

Parameters
message mandatory message
level mandatory level

public ClientNotification (String message, Throwable throwable)

Create an error-level notification embedding a stack trace.

Parameters
message optional message
throwable mandatory exception or error

Public Methods

public ClientNotificationLevel getLevel ()

Get the notification level.

Returns
  • the level

public String getMessage ()

Get the notification message.

Returns
  • the message

public Throwable getThrowable ()

Get the attached throwable, possibly non-null for error-level notifications.