All Downloads are FREE. Search and download functionalities are using the official Maven repository.

quickfix.SessionRejectReasonText Maven / Gradle / Ivy

There is a newer version: 2.3.1
Show newest version
/*******************************************************************************
 * Copyright (c) quickfixengine.org  All rights reserved.
 *
 * This file is part of the QuickFIX FIX Engine
 *
 * This file may be distributed under the terms of the quickfixengine.org
 * license as defined by quickfixengine.org and appearing in the file
 * LICENSE included in the packaging of this file.
 *
 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING
 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A
 * PARTICULAR PURPOSE.
 *
 * See http://www.quickfixengine.org/LICENSE for licensing information.
 *
 * Contact [email protected] if any conditions of this licensing
 * are not clear to you.
 ******************************************************************************/

package quickfix;

import quickfix.field.SessionRejectReason;

import java.util.HashMap;

class SessionRejectReasonText extends SessionRejectReason {
    private static final HashMap rejectReasonText = new HashMap<>();

    static {
        rejectReasonText.put(INVALID_TAG_NUMBER, "Invalid tag number");
        rejectReasonText.put(REQUIRED_TAG_MISSING, "Required tag missing");
        rejectReasonText.put(TAG_NOT_DEFINED_FOR_THIS_MESSAGE_TYPE, "Tag not defined for this message type");
        rejectReasonText.put(UNDEFINED_TAG, "Undefined Tag");
        rejectReasonText.put(TAG_SPECIFIED_WITHOUT_A_VALUE, "Tag specified without a value");
        rejectReasonText.put(VALUE_IS_INCORRECT, "Value is incorrect (out of range) for this tag");
        rejectReasonText.put(INCORRECT_DATA_FORMAT_FOR_VALUE, "Incorrect data format for value");
        rejectReasonText.put(DECRYPTION_PROBLEM, "Decryption problem");
        rejectReasonText.put(SIGNATURE_PROBLEM, "Signature problem");
        rejectReasonText.put(COMPID_PROBLEM, "CompID problem");
        rejectReasonText.put(SENDINGTIME_ACCURACY_PROBLEM, "SendingTime accuracy problem");
        rejectReasonText.put(INVALID_MSGTYPE, "Invalid MsgType");
        rejectReasonText.put(TAG_APPEARS_MORE_THAN_ONCE, "Tag appears more than once");
        rejectReasonText.put(TAG_SPECIFIED_OUT_OF_REQUIRED_ORDER, "Tag specified out of required order");
        rejectReasonText.put(INCORRECT_NUMINGROUP_COUNT_FOR_REPEATING_GROUP, "Incorrect NumInGroup count for repeating group");
        rejectReasonText.put(REPEATING_GROUP_FIELDS_OUT_OF_ORDER, "Out of order repeating group members");
    }

    public static String getMessage(int sessionRejectReason) {
        return rejectReasonText.get(sessionRejectReason);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy