Package org.gephi.io.importer.api
Class Issue
- java.lang.Object
-
- org.gephi.io.importer.api.Issue
-
public final class Issue extends Object
Issue are logged and classified byReport
to describe a problem encountered during import process.Issues have a level of severity based on
Issue.Level
. TheCRITICAL
level is by default configured inReport
to throw an exception and stop the import process. Other levels are logged and presented to the user.- Author:
- Mathieu Bastian
- See Also:
Report
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Issue.Level
-
Constructor Summary
Constructors Constructor Description Issue(String message, Issue.Level level)
Constructs a new issue with a message and a level.Issue(String message, Issue.Level level, Throwable throwable)
Constructs a new issue with a message, level and throwable.Issue(Throwable throwable, Issue.Level level)
Constructs a new issue with a throwable and a level.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Issue.Level
getLevel()
Returns this issue's level.String
getMessage()
Returns this issue's message.Throwable
getThrowable()
Returns this issue's throwable.String
toString()
-
-
-
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
- throwablelevel
- level
-
Issue
public Issue(String message, Issue.Level level, Throwable throwable)
Constructs a new issue with a message, level and throwable.- Parameters:
message
- messagelevel
- levelthrowable
- throwable
-
Issue
public Issue(String message, Issue.Level level)
Constructs a new issue with a message and a level.- Parameters:
message
- messagelevel
- 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
-
-