125 lines
3.3 KiB
C#
125 lines
3.3 KiB
C#
/*
|
|
* 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
|
|
{
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class ResponseDetail
|
|
{
|
|
|
|
/// <summary>
|
|
/// WARNINGS, HINTS: positive values
|
|
/// </summary>
|
|
public static int OK = 0;
|
|
|
|
/// <summary>
|
|
/// Plugin-ERRORS: negative values
|
|
/// </summary>
|
|
public static int REQUEST_IS_NULL = -10001; //
|
|
/// <summary>
|
|
/// any call to MES before mesConfigure was called properly
|
|
/// </summary>
|
|
public static int PLUGIN_NOT_CONFIGURED = -10002; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int PLUGIN_NOT_ACTIVE = -10003; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int PLUGIN_NOT_CONNECTED = -10004; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int COMMUNICATION_FAILURE = -10005; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int WRONG_COMMUNICATION_PROPERTIES = -10006; //
|
|
/// <summary>
|
|
/// the version from the mes does not fit the version of the interface
|
|
/// </summary>
|
|
public static int PLUGIN_VERSION_MISMATCH = -10007; //
|
|
/// <summary>
|
|
/// The response was not set before
|
|
/// </summary>
|
|
public static int RESPONSE_IS_NULL = -10008; //
|
|
|
|
/// <summary>
|
|
/// Errors from Data Interface negative values
|
|
/// </summary>
|
|
public static int MES_NOT_CONNECTED = -20000; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int MES_NOT_CONFIGURED_PROPERLY = -20001; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int MES_NOT_INITIALIZED = -20002; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int PARSED_WITH_EXCEPTION = -20003; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int PROCESSED_WITH_EXCEPTION = -20004; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int SERIALNUMBER_NOT_ALLOWED = -20005; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int PARSE_PROBLEM = -20006; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int NOT_SENT = -20007; //
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public static int MES_SERVICE_NOT_REACHABLE = -20008; //
|
|
|
|
|
|
private int code;
|
|
private String text;
|
|
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public ResponseDetail(String text, int code)
|
|
{
|
|
this.text = text;
|
|
this.code = code;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int getCode()
|
|
{
|
|
return code;
|
|
}
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public String getText()
|
|
{
|
|
return text;
|
|
}
|
|
}
|
|
}
|