Package net.sf.gridarta.model.errorview
Interface ErrorView
-
- All Known Implementing Classes:
ConsoleErrorView,DefaultErrorView
public interface ErrorViewInterface for classes displaying error messages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddError(@NotNull ErrorViewCategory categoryName, int lineNo, @NotNull java.lang.String message)Adds an error message.voidaddError(@NotNull ErrorViewCategory categoryName, @NotNull java.lang.String message)Adds an error message.voidaddWarning(@NotNull ErrorViewCategory categoryName, int lineNo, @NotNull java.lang.String message)Adds a warning message.voidaddWarning(@NotNull ErrorViewCategory categoryName, @NotNull java.lang.String message)Adds a warning message.booleanhasErrors()Whether at least one error message has been added.voidwaitDialog()Waits until the dialog has been dismissed.
-
-
-
Method Detail
-
addError
void addError(@NotNull @NotNull ErrorViewCategory categoryName, @NotNull @NotNull java.lang.String message)Adds an error message.- Parameters:
categoryName- the error categorymessage- the error message
-
addError
void addError(@NotNull @NotNull ErrorViewCategory categoryName, int lineNo, @NotNull @NotNull java.lang.String message)Adds an error message.- Parameters:
categoryName- the error categorylineNo- the line number of the error messagemessage- the error message
-
addWarning
void addWarning(@NotNull @NotNull ErrorViewCategory categoryName, @NotNull @NotNull java.lang.String message)Adds a warning message.- Parameters:
categoryName- the warning categorymessage- the warning message
-
addWarning
void addWarning(@NotNull @NotNull ErrorViewCategory categoryName, int lineNo, @NotNull @NotNull java.lang.String message)Adds a warning message.- Parameters:
categoryName- the warning categorylineNo- the line number of the error messagemessage- the warning message
-
hasErrors
boolean hasErrors()
Whether at least one error message has been added.- Returns:
- whether error exist
-
waitDialog
void waitDialog() throws java.lang.InterruptedExceptionWaits until the dialog has been dismissed.- Throws:
java.lang.InterruptedException- if the current thread has been interrupted while waiting for the dialog to close
-
-