Class Issue


  • public final class Issue
    extends Object
    Issue are logged and classified by Report to describe a problem encountered during import process.

    Issues have a level of severity based on Issue.Level. The CRITICAL level is by default configured in Report to throw an exception and stop the import process. Other levels are logged and presented to the user.

    Author:
    Mathieu Bastian
    See Also:
    Report
    • Constructor Detail

      • Issue

        public Issue​(Throwable throwable,
                     Issue.Level level)
        Constructs a new issue with a throwable and a level.

        The message is set based on throwable.

        Parameters:
        throwable - throwable
        level - level
      • Issue

        public Issue​(String message,
                     Issue.Level level,
                     Throwable throwable)
        Constructs a new issue with a message, level and throwable.
        Parameters:
        message - message
        level - level
        throwable - throwable
      • Issue

        public Issue​(String message,
                     Issue.Level level)
        Constructs a new issue with a message and a level.
        Parameters:
        message - message
        level - level
    • Method Detail

      • getMessage

        public String getMessage()
        Returns this issue's message.
        Returns:
        message
      • getLevel

        public Issue.Level getLevel()
        Returns this issue's level.
        Returns:
        level
      • getThrowable

        public Throwable getThrowable()
        Returns this issue's throwable.
        Returns:
        throwable or null if unset