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 Details

    • ErrorCodeConfiguration

      public ErrorCodeConfiguration()
      Instantiates a new error code configuration.
  • Method Details

    • getCustomErrorCode

      public String getCustomErrorCode(String key, String defaultValue)
      Gets the custom error code.
      Parameters:
      key - the key
      defaultValue - the default value
      Returns:
      the custom error code
    • getCustomErrorCode

      public String getCustomErrorCode(String key)
      Gets the custom error code.
      Parameters:
      key - the key
      Returns:
      the custom error code