com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class NotificationMessage



  • public final class NotificationMessage
    extends Object

    Provides a notification message.

    • Method Detail

      • getNotificationLevel

        public int getNotificationLevel()

        Gets a level of the notification.

        Returns:
        A level of the notification.
      • getDescription

        public String getDescription()

        Gets a description of the notification.

        Returns:
        A string with description of the notification.
      • getException

        public Exception getException()

        Gets an exception of the error notification.

        Returns:
        An instance of the exception or null (if not presented).
      • createErrorMessage

        public static NotificationMessage createErrorMessage(String description)

        Creates a error notification message.

        Parameters:
        description - The description of the error.
        Returns:
        An instance of the NotificationMessage.
      • createErrorMessage

        public static NotificationMessage createErrorMessage(String description,
                                             Exception exception)

        Creates a error notification message.

        Parameters:
        description - The description of the error.
        exception - The instance of exception.
        Returns:
        An instance of the NotificationMessage.
      • createWarningMessage

        public static NotificationMessage createWarningMessage(String description)

        Creates a warning notification message.

        Parameters:
        description - The description of the warning.
        Returns:
        An instance of the NotificationMessage.
      • createInformationMessage

        public static NotificationMessage createInformationMessage(String description)

        Creates a information notification message.

        Parameters:
        description - The description of the information.
        Returns:
        An instance of the NotificationMessage.