Class ExceptionUtils

java.lang.Object
dev.openfeature.sdk.exceptions.ExceptionUtils

public class ExceptionUtils extends Object
  • Constructor Details

    • ExceptionUtils

      public ExceptionUtils()
  • Method Details

    • instantiateErrorByErrorCode

      public static OpenFeatureError instantiateErrorByErrorCode(ErrorCode errorCode, String errorMessage)
      Creates an Error for the specific error code.
      Parameters:
      errorCode - the ErrorCode to use
      errorMessage - the error message to include in the returned error
      Returns:
      the specific OpenFeatureError for the errorCode