java.lang.Object
dev.openfeature.sdk.exceptions.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenFeatureErrorinstantiateErrorByErrorCode(ErrorCode errorCode, String errorMessage) Creates an Error for the specific error code.
-
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 useerrorMessage- the error message to include in the returned error- Returns:
- the specific OpenFeatureError for the errorCode
-