public final class NotificationMessage extends Object
Provides a notification message.
Modifier and Type | Method and Description |
---|---|
static NotificationMessage |
createErrorMessage(String description)
Creates a error notification message.
|
static NotificationMessage |
createErrorMessage(String description,
Exception exception)
Creates a error notification message.
|
static NotificationMessage |
createInformationMessage(String description)
Creates a information notification message.
|
static NotificationMessage |
createWarningMessage(String description)
Creates a warning notification message.
|
String |
getDescription()
Gets a description of the notification.
|
Exception |
getException()
Gets an exception of the error notification.
|
int |
getNotificationLevel()
Gets a level of the notification.
|
public int getNotificationLevel()
Gets a level of the notification.
public String getDescription()
Gets a description of the notification.
public Exception getException()
Gets an exception of the error notification.
public static NotificationMessage createErrorMessage(String description)
Creates a error notification message.
description
- The description of the error.NotificationMessage
.public static NotificationMessage createErrorMessage(String description, Exception exception)
Creates a error notification message.
description
- The description of the error.exception
- The instance of exception.NotificationMessage
.public static NotificationMessage createWarningMessage(String description)
Creates a warning notification message.
description
- The description of the warning.NotificationMessage
.public static NotificationMessage createInformationMessage(String description)
Creates a information notification message.
description
- The description of the information.NotificationMessage
.Copyright © 2018. All rights reserved.