class UsageOfUnsupportedApiException extends BackwardCompatibilityException {

    private final int requestedFormatNumber;
    private final int maxSupportedFormatNumber;

    public UsageOfUnsupportedApiException(int requestedFormatNumber, int maxSupportedFormatNumber) {
        super(formatMessage(requestedFormatNumber, maxSupportedFormatNumber));
        this.requestedFormatNumber = requestedFormatNumber;
        this.maxSupportedFormatNumber = maxSupportedFormatNumber;
    }

    public int getRequestedFormatNumber() {
        return requestedFormatNumber;
    }

    public int getMaxSupportedFormatNumber() {
        return maxSupportedFormatNumber;
    }

    private static String formatMessage(int formatNumber, int maxFormatNumber) {<FILL_FUNCTION_BODY>}

}

        String fmt = "Command cannot be executed, because it encoded in {0} format number, when maximum supported by backend is {1}";
        return MessageFormat.format(fmt, formatNumber, maxFormatNumber);
    
<methods>public void <init>(java.lang.String) <variables>