/* * Copyright (c) 2015 iTAC Software AG, Germany. All Rights Reserved. * * This software is protected by copyright. Under no circumstances may any part of this file in any form be copied, * printed, edited or otherwise distributed, be stored in a retrieval system, or be translated into another language * without the written permission of iTAC Software AG. */ using System; namespace com.itac.mes.commonsmt { /// /// /// public class ResponseDetail { /// /// WARNINGS, HINTS: positive values /// public static int OK = 0; /// /// Plugin-ERRORS: negative values /// public static int REQUEST_IS_NULL = -10001; // /// /// any call to MES before mesConfigure was called properly /// public static int PLUGIN_NOT_CONFIGURED = -10002; // /// /// /// public static int PLUGIN_NOT_ACTIVE = -10003; // /// /// /// public static int PLUGIN_NOT_CONNECTED = -10004; // /// /// /// public static int COMMUNICATION_FAILURE = -10005; // /// /// /// public static int WRONG_COMMUNICATION_PROPERTIES = -10006; // /// /// the version from the mes does not fit the version of the interface /// public static int PLUGIN_VERSION_MISMATCH = -10007; // /// /// The response was not set before /// public static int RESPONSE_IS_NULL = -10008; // /// /// Errors from Data Interface negative values /// public static int MES_NOT_CONNECTED = -20000; // /// /// /// public static int MES_NOT_CONFIGURED_PROPERLY = -20001; // /// /// /// public static int MES_NOT_INITIALIZED = -20002; // /// /// /// public static int PARSED_WITH_EXCEPTION = -20003; // /// /// /// public static int PROCESSED_WITH_EXCEPTION = -20004; // /// /// /// public static int SERIALNUMBER_NOT_ALLOWED = -20005; // /// /// /// public static int PARSE_PROBLEM = -20006; // /// /// /// public static int NOT_SENT = -20007; // /// /// /// public static int MES_SERVICE_NOT_REACHABLE = -20008; // private int code; private String text; /// /// /// public ResponseDetail(String text, int code) { this.text = text; this.code = code; } /// /// /// public int getCode() { return code; } /// /// /// public String getText() { return text; } } }