Beispiel #1
0
        //==========================================================================================
        /// <summary>
        /// Initializes a new instance of the <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxException" crefType="Unqualified"/> class using serialized data.
        /// </summary>
        /// <param name="info">
        /// Object that holds the serialized object data.
        /// </param>
        /// <param name="context">
        /// Contextual information about the source or destination.
        /// </param>
        //==========================================================================================
        protected ImaqdxException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            _error = (ImaqdxError)info.GetInt32(ErrorKey);
        }
Beispiel #2
0
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxException" crefType="Unqualified"/> class using the given error message and error code.
 /// </summary>
 /// <param name="message">
 /// An error message describing this exception.
 /// </param>
 /// <param name="error">
 /// The <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxError" crefType="Unqualified"/>  associated with this exception.
 /// </param>
 //==========================================================================================
 public ImaqdxException(string message, ImaqdxError error)
     : this(message, null, error)
 {
 }
Beispiel #3
0
 //==========================================================================================
 /// <summary>
 /// Initializes a new instance of the <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxException" crefType="Unqualified"/> class using the given error message, inner exception, and error code.
 /// </summary>
 /// <param name="message">
 /// An error message describing this exception.
 /// </param>
 /// <param name="inner">
 /// The inner exception that caused this exception to be thrown.
 /// </param>
 /// <param name="error">
 /// The <see cref="NationalInstruments.Vision.Acquisition.Imaqdx.ImaqdxError" crefType="Unqualified"/> associated with this exception.
 /// </param>
 //==========================================================================================
 public ImaqdxException(string message, Exception inner, ImaqdxError error)
     : base(message, inner)
 {
     _error = error;
 }