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 Details

    • ErrorCodeConfiguration

      public ErrorCodeConfiguration()
  • 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