Files
imsInterface/interface/commonsmt/dotnetplugin/Plugin/PluginException.cs
2025-06-06 09:15:13 +02:00

52 lines
1.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;
using System.Runtime.Serialization;
using System.Security.Permissions;
namespace com.itac.mes.commonsmt
{
/// <summary>
/// This Exception contains some details about the reason
/// </summary>
[Serializable]
public class PluginException : Exception
{
private ResponseDetail responseDetail;
private int p;
/// <summary>
///
/// </summary>
public PluginException(ResponseDetail responseDetail)
{
this.responseDetail = responseDetail;
}
/// <summary>
///
/// </summary>
public PluginException(int p, String message)
{
this.responseDetail = new ResponseDetail(message, p);
this.p = p;
}
/// <summary>
///
/// </summary>
public ResponseDetail getResponseDetail()
{
return responseDetail;
}
}
}