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, Set<DependencyInjectionError> dependencyInjectionErrors) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ConfigurationErrorReporter
report
-
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
public void report(Set<ConfigurationError> errors, Set<DependencyInjectionError> dependencyInjectionErrors) throws IOException - Specified by:
reportin interfaceConfigurationErrorReporter- Throws:
IOException
-