1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 2 * Copyright (c) 2003-2012 by AG-Software * 3 * All Rights Reserved. * 4 * Contact information for AG-Software is available at http://www.ag-software.de * 5 * * 6 * Licence: * 7 * The agsXMPP SDK is released under a dual licence * 8 * agsXMPP can be used under either of two licences * 9 * * 10 * A commercial licence which is probably the most appropriate for commercial * 11 * corporate use and closed source projects. * 12 * * 13 * The GNU Public License (GPL) is probably most appropriate for inclusion in * 14 * other open source projects. * 15 * * 16 * See README.html for details. * 17 * * 18 * For general enquiries visit our website at: * 19 * http://www.ag-software.de * 20 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ 21 22 using System; 23 24 namespace agsXMPP.protocol.component 25 { 26 /// <summary> 27 /// Summary description for Error. 28 /// </summary> 29 public class Error : agsXMPP.protocol.client.Error 30 { Error()31 public Error() : base() 32 { 33 this.Namespace = Uri.ACCEPT; 34 } 35 Error(agsXMPP.protocol.client.ErrorType type)36 public Error(agsXMPP.protocol.client.ErrorType type) 37 : base(type) 38 { 39 this.Namespace = Uri.ACCEPT; 40 } 41 42 /// <summary> 43 /// Creates an error Element according the the condition 44 /// The type attrib as added automatically as decribed in the XMPP specs 45 /// This is the prefered way to create error Elements 46 /// </summary> 47 /// <param name="condition"></param> Error(agsXMPP.protocol.client.ErrorCondition condition)48 public Error(agsXMPP.protocol.client.ErrorCondition condition) 49 : base(condition) 50 { 51 this.Namespace = Uri.ACCEPT; 52 } 53 } 54 } 55