initialize
This commit is contained in:
51
interface/commonsmt/dotnetplugin/Plugin/PluginException.cs
Normal file
51
interface/commonsmt/dotnetplugin/Plugin/PluginException.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user