Class ErrorCodeConfiguration
java.lang.Object
com.skava.orchestration.configuration.ErrorCodeConfiguration
@RefreshScope
@Configuration
@PropertySource(value="classpath:error_codes.yml",
factory=YamlPropertySourceFactory.class)
public class ErrorCodeConfiguration
extends Object
ErrorCodeConfiguration class.
This class contains error code configuration.- Version:
- 8.0
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomErrorCode
(String key) Gets the custom error code.getCustomErrorCode
(String key, String defaultValue) Gets the custom error code.
-
Constructor Details
-
ErrorCodeConfiguration
public ErrorCodeConfiguration()
-
-
Method Details
-
getCustomErrorCode
Gets the custom error code.- Parameters:
key
- the keydefaultValue
- the default value- Returns:
- the custom error code
-
getCustomErrorCode
Gets the custom error code.- Parameters:
key
- the key- Returns:
- the custom error code
-