public class ErrorViewCollector
extends java.lang.Object
ErrorView
instance using a
fixed category name.Constructor and Description |
---|
ErrorViewCollector(ErrorView errorView,
java.io.File file)
Creates a new instance.
|
ErrorViewCollector(ErrorView errorView,
java.net.URL url)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(ErrorViewCategory category)
Adds an error message.
|
void |
addError(ErrorViewCategory category,
int lineNo,
java.lang.String message)
Adds an error message.
|
void |
addError(ErrorViewCategory category,
java.lang.String message)
Adds an error message.
|
void |
addWarning(ErrorViewCategory category)
Adds a warning message.
|
void |
addWarning(ErrorViewCategory category,
int lineNo,
java.lang.String message)
Adds a warning message.
|
void |
addWarning(ErrorViewCategory category,
java.lang.String message)
Adds a warning message.
|
public ErrorViewCollector(@NotNull ErrorView errorView, @NotNull java.io.File file)
errorView
- the error view to add tofile
- the file being readpublic ErrorViewCollector(@NotNull ErrorView errorView, @NotNull java.net.URL url)
errorView
- the error view to add tourl
- the URL being readpublic void addWarning(@NotNull ErrorViewCategory category)
category
- the categorypublic void addWarning(@NotNull ErrorViewCategory category, @NotNull java.lang.String message)
category
- the categorymessage
- the messagepublic void addWarning(@NotNull ErrorViewCategory category, int lineNo, @NotNull java.lang.String message)
category
- the categorylineNo
- the line numbermessage
- the messagepublic void addError(@NotNull ErrorViewCategory category)
category
- the categorypublic void addError(@NotNull ErrorViewCategory category, @NotNull java.lang.String message)
category
- the categorymessage
- the messagepublic void addError(@NotNull ErrorViewCategory category, int lineNo, @NotNull java.lang.String message)
category
- the categorylineNo
- the line numbermessage
- the message