java.lang.Object
java.lang.Enum<ErrorCode>
org.qubership.integration.platform.engine.errorhandling.errorcode.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
  • Enum Constant Details

    • UNEXPECTED_BUSINESS_ERROR

      public static final ErrorCode UNEXPECTED_BUSINESS_ERROR
    • REQUEST_VALIDATION_ERROR

      public static final ErrorCode REQUEST_VALIDATION_ERROR
    • REQUESTED_ENDPOINT_NOT_FOUND

      public static final ErrorCode REQUESTED_ENDPOINT_NOT_FOUND
    • LOOP_ITERATIONS_LIMIT_REACHED

      public static final ErrorCode LOOP_ITERATIONS_LIMIT_REACHED
    • SOCKET_TIMEOUT

      public static final ErrorCode SOCKET_TIMEOUT
    • SERVICE_RETURNED_ERROR

      public static final ErrorCode SERVICE_RETURNED_ERROR
    • KAFKA_TIMEOUT

      public static final ErrorCode KAFKA_TIMEOUT
    • CHAIN_ENDPOINT_NOT_FOUND

      public static final ErrorCode CHAIN_ENDPOINT_NOT_FOUND
    • AUTHORIZATION_ERROR

      public static final ErrorCode AUTHORIZATION_ERROR
    • METHOD_NOT_ALLOWED

      public static final ErrorCode METHOD_NOT_ALLOWED
    • SDS_JOB_FINISHED_NOTIFICATION_ERROR

      public static final ErrorCode SDS_JOB_FINISHED_NOTIFICATION_ERROR
    • SDS_EXECUTION_INTERNAL_ERROR

      public static final ErrorCode SDS_EXECUTION_INTERNAL_ERROR
    • SDS_MISSING_JOB_ID

      public static final ErrorCode SDS_MISSING_JOB_ID
    • RESPONSE_VALIDATION_ERROR

      public static final ErrorCode RESPONSE_VALIDATION_ERROR
    • PREDEPLOY_CHECK_ERROR

      public static final ErrorCode PREDEPLOY_CHECK_ERROR
    • UNEXPECTED_DEPLOYMENT_ERROR

      public static final ErrorCode UNEXPECTED_DEPLOYMENT_ERROR
    • DEPLOYMENT_START_ERROR

      public static final ErrorCode DEPLOYMENT_START_ERROR
  • Method Details

    • values

      public static ErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getCode

      public String getCode()
    • getFormattedCode

      public String getFormattedCode()
    • match

      @Nullable public static ErrorCode match(@Nullable Throwable exception)
      Get ErrorCode by exception matched via @ChainExceptionHandler annotation in ChainGlobalExceptionHandler class
      Parameters:
      exception - Exception that was thrown
      Returns:
      ErrorCode related to specified exception
    • compileMessage

      public String compileMessage(String... messageParams)
    • getMessage

      public String getMessage()