Package io.smallrye.config
Class ConfigValidationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- io.smallrye.config.ConfigValidationException
-
- All Implemented Interfaces:
Serializable
public class ConfigValidationException extends RuntimeException
An exception which is thrown when a configuration validation problem occurs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigValidationException.Problem
-
Constructor Summary
Constructors Constructor Description ConfigValidationException(ConfigValidationException.Problem[] problems)Constructs a newConfigurationValidationExceptioninstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigValidationException.ProblemgetProblem(int index)intgetProblemCount()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ConfigValidationException
public ConfigValidationException(ConfigValidationException.Problem[] problems)
Constructs a newConfigurationValidationExceptioninstance.- Parameters:
problems- the reported problems
-
-
Method Detail
-
getProblemCount
public int getProblemCount()
-
getProblem
public ConfigValidationException.Problem getProblem(int index)
-
-