Class ConfigurationError.Builder
java.lang.Object
io.micronaut.jsonschema.configuration.validator.ConfigurationError.Builder
- Enclosing class:
ConfigurationError
Builder for
ConfigurationError.-
Method Summary
Modifier and TypeMethodDescriptionbuild()lineNumber(int lineNumber) Set the 1-based line number in the origin file.originLocation(@Nullable String originLocation) Set the origin location for this error.rawPropertyName(@Nullable String rawPropertyName) Set the raw (non-normalized) property name.Set the raw value.Set a best-effort snippet showing the invalid definition.snippetLanguage(@Nullable String snippetLanguage) Set the snippet language.type(ConfigurationError.Type type) Set the errorConfigurationError.Type.
-
Method Details
-
type
Set the errorConfigurationError.Type.- Parameters:
type- The type- Returns:
- This builder
-
originLocation
Set the origin location for this error.- Parameters:
originLocation- The origin location (for example a file path or classpath resource)- Returns:
- This builder
-
rawPropertyName
Set the raw (non-normalized) property name.- Parameters:
rawPropertyName- The raw property name- Returns:
- This builder
-
rawValue
Set the raw value.- Parameters:
rawValue- The raw value- Returns:
- This builder
-
lineNumber
Set the 1-based line number in the origin file.- Parameters:
lineNumber- The line number, or-1if unknown- Returns:
- This builder
-
snippet
Set a best-effort snippet showing the invalid definition.- Parameters:
snippet- The snippet- Returns:
- This builder
-
snippetLanguage
Set the snippet language.- Parameters:
snippetLanguage- The snippet language (for exampleproperties,yaml,toml)- Returns:
- This builder
-
build
- Returns:
- A new
ConfigurationErrorinstance.
-