public static InvalidOptionConfigurationException parseFailure(String optionName, String expectedType,
                                                                   String actualValue, Throwable cause) {

        String msg = "Expected '" + optionName + "' to be of type " + expectedType + " but provided value '"
            + actualValue + "' could not be parsed";
        return new InvalidOptionConfigurationException(msg, cause)
            .setOptionName(optionName)
            .setExpectedType(expectedType)
            .setActualValue(actualValue);
    }
Indicate a parsing failure.

@param optionName   option name/key being parsed.
@param expectedType the anticipated type (e.g. boolean).
@param actualValue  the actual found.
@param cause        the cause of this issue, if it is an exception (e.g. NumberFormatException).
common/config/src/main/java/io/apiman/common/config/options/exceptions/InvalidOptionConfigurationException.java