Class ErrorCodeConfigReader
- java.lang.Object
-
- com.exasol.errorcodecrawlermavenplugin.config.ErrorCodeConfigReader
-
public class ErrorCodeConfigReader extends Object
This class reads the errorCodeConfig.yml into aErrorCodeConfig.
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_NAME
-
Constructor Summary
Constructors Constructor Description ErrorCodeConfigReader(Path projectDir)Create a new instance ofErrorCodeConfigReader.
-
-
-
Field Detail
-
CONFIG_NAME
public static final String CONFIG_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ErrorCodeConfigReader
public ErrorCodeConfigReader(Path projectDir) throws ErrorCodeConfigException
Create a new instance ofErrorCodeConfigReader.- Parameters:
projectDir- projects directory- Throws:
ErrorCodeConfigException- if the config does not exist
-
-
Method Detail
-
read
public ErrorCodeConfig read() throws ErrorCodeConfigException
Read the configuration.- Returns:
- java representation of the config:
ErrorCodeConfig - Throws:
ErrorCodeConfigException- if the config has an invalid syntax
-
-