class UsageOfObsoleteApiException extends BackwardCompatibilityException {

    private final int requestedFormatNumber;
    private final int minSupportedFormatNumber;

    public UsageOfObsoleteApiException(int requestedFormatNumber, int minSupportedFormatNumber) {
        super(formatMessage(requestedFormatNumber, minSupportedFormatNumber));
        this.requestedFormatNumber = requestedFormatNumber;
        this.minSupportedFormatNumber = minSupportedFormatNumber;
    }

    public int getRequestedFormatNumber() {
        return requestedFormatNumber;
    }

    public int getMinSupportedFormatNumber() {
        return minSupportedFormatNumber;
    }

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

}

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