/* * 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 { /// /// This Exception contains some details about the reason /// [Serializable] public class PluginException : Exception { private ResponseDetail responseDetail; private int p; /// /// /// public PluginException(ResponseDetail responseDetail) { this.responseDetail = responseDetail; } /// /// /// public PluginException(int p, String message) { this.responseDetail = new ResponseDetail(message, p); this.p = p; } /// /// /// public ResponseDetail getResponseDetail() { return responseDetail; } } }