예제 #1
0
		/// <summary>
		/// Initializes a new instance of the XmppErrorException class with the specified
		/// serialization and context information.
		/// </summary>
		/// <param name="error">The XMPP error that is the reason for the exception.</param>
		/// <param name="info">An object that holds the serialized object data about the exception
		/// being thrown. </param>
		/// <param name="context">An object that contains contextual information about the source
		/// or destination. </param>
		/// <exception cref="ArgumentNullException">The error parameter is null.</exception>
		protected XmppErrorException(XmppError error, SerializationInfo info, StreamingContext context)
			: base(info, context) {
			error.ThrowIfNull("error");
			Error = error;
		}
예제 #2
0
		/// <summary>
		/// Initializes a new instance of the XmppErrorException class
		/// </summary>
		/// <param name="error">The XMPP error that is the reason for the exception.</param>
		/// <exception cref="ArgumentNullException">The error parameter is null.</exception>
		public XmppErrorException(XmppError error) : base() {
			error.ThrowIfNull("error");
			Error = error;
		}
예제 #3
0
		/// <summary>
		/// Initializes a new instance of the XmppErrorException class with its message
		/// string set to <paramref name="message"/> and a reference to the inner exception that
		/// is the cause of this exception.
		/// </summary>
		/// <param name="error">The XMPP error that is the reason for the exception.</param>
		/// <param name="message">A description of the error. The content of message is intended
		/// to be understood by humans.</param>
		/// <param name="inner">The exception that is the cause of the current exception.</param>
		/// <exception cref="ArgumentNullException">The error parameter is null.</exception>
		public XmppErrorException(XmppError error, string message, Exception inner)
			: base(message, inner) {
			error.ThrowIfNull("error");
			Error = error;
		}
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the XmppErrorException class with the specified
 /// serialization and context information.
 /// </summary>
 /// <param name="error">The XMPP error that is the reason for the exception.</param>
 /// <param name="info">An object that holds the serialized object data about the exception
 /// being thrown. </param>
 /// <param name="context">An object that contains contextual information about the source
 /// or destination. </param>
 /// <exception cref="ArgumentNullException">The error parameter is null.</exception>
 protected XmppErrorException(XmppError error, SerializationInfo info, StreamingContext context)
     : base(info, context)
 {
     error.ThrowIfNull("error");
     Error = error;
 }
예제 #5
0
 /// <summary>
 /// Initializes a new instance of the XmppErrorException class with its message
 /// string set to <paramref name="message"/> and a reference to the inner exception that
 /// is the cause of this exception.
 /// </summary>
 /// <param name="error">The XMPP error that is the reason for the exception.</param>
 /// <param name="message">A description of the error. The content of message is intended
 /// to be understood by humans.</param>
 /// <param name="inner">The exception that is the cause of the current exception.</param>
 /// <exception cref="ArgumentNullException">The error parameter is null.</exception>
 public XmppErrorException(XmppError error, string message, Exception inner)
     : base(message, inner)
 {
     error.ThrowIfNull("error");
     Error = error;
 }
예제 #6
0
 /// <summary>
 /// Initializes a new instance of the XmppErrorException class
 /// </summary>
 /// <param name="error">The XMPP error that is the reason for the exception.</param>
 /// <exception cref="ArgumentNullException">The error parameter is null.</exception>
 public XmppErrorException(XmppError error) : base()
 {
     error.ThrowIfNull("error");
     Error = error;
 }
예제 #7
0
 public XmppErrorException(XmppError error)
 {
     error.ThrowIfNull <XmppError>("error");
     this.Error = error;
 }
예제 #8
0
 public XmppErrorException(XmppError error, string message) : base(message)
 {
     error.ThrowIfNull <XmppError>("error");
     this.Error = error;
 }