Class SystemErrConfigurationErrorReporter
java.lang.Object
io.micronaut.jsonschema.configuration.validator.report.SystemErrConfigurationErrorReporter
- All Implemented Interfaces:
ConfigurationErrorReporter
public final class SystemErrConfigurationErrorReporter
extends Object
implements ConfigurationErrorReporter
Reports errors to
System.err.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a reporter that writes toSystem.err.Creates a reporter that writes to the given stream.SystemErrConfigurationErrorReporter(PrintStream err, @Nullable Path htmlReport, @Nullable Path jsonReport) Creates a reporter that writes to the given stream and optionally prints the location of written report files.SystemErrConfigurationErrorReporter(PrintStream err, @Nullable Path htmlReport, @Nullable Path jsonReport, @Nullable Path projectBaseDir, List<Path> resourcesDirs) Creates a reporter that writes to the given stream and optionally prints the location of written report files. -
Method Summary
Modifier and TypeMethodDescriptionvoidreport(Set<ConfigurationError> errors) Report configuration validation errors.
-
Constructor Details
-
SystemErrConfigurationErrorReporter
public SystemErrConfigurationErrorReporter()Creates a reporter that writes toSystem.err. -
SystemErrConfigurationErrorReporter
Creates a reporter that writes to the given stream.- Parameters:
err- The error stream
-
SystemErrConfigurationErrorReporter
public SystemErrConfigurationErrorReporter(PrintStream err, @Nullable Path htmlReport, @Nullable Path jsonReport) Creates a reporter that writes to the given stream and optionally prints the location of written report files.- Parameters:
err- The error streamhtmlReport- The HTML report file location (optional)jsonReport- The JSON report file location (optional)
-
SystemErrConfigurationErrorReporter
public SystemErrConfigurationErrorReporter(PrintStream err, @Nullable Path htmlReport, @Nullable Path jsonReport, @Nullable Path projectBaseDir, List<Path> resourcesDirs) Creates a reporter that writes to the given stream and optionally prints the location of written report files.- Parameters:
err- The error streamhtmlReport- The HTML report file location (optional)jsonReport- The JSON report file location (optional)projectBaseDir- The project base directory used to render relative origin paths (optional)resourcesDirs- Resource directories (relative to base dir) used to resolve classpath origins
-
-
Method Details
-
report
Description copied from interface:ConfigurationErrorReporterReport configuration validation errors.- Specified by:
reportin interfaceConfigurationErrorReporter- Parameters:
errors- The errors to report- Throws:
IOException- If the reporter fails to write the report
-