Class ErrorCodeConfiguration
java.lang.Object
com.skava.marketplace.orchestration.configuration.ErrorCodeConfiguration
@RefreshScope
@Configuration
@PropertySource(value="classpath:error_codes.yml",
factory=com.skava.core.yaml.YamlPropertySourceFactory.class)
public class ErrorCodeConfiguration
extends Object
The Class ErrorCodeConfiguration.
-
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()Instantiates a new error code configuration.
-
-
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
-