Welcome to mirror list, hosted at ThFree Co, Russian Federation.

USBException.cs « WinUSBNet « FelLib - github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d61d45e9afe6e3f5790a206c6ea020277b33fcd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*  WinUSBNet library
 *  (C) 2010 Thomas Bleeker (www.madwizard.org)
 *  
 *  Licensed under the MIT license, see license.txt or:
 *  http://www.opensource.org/licenses/mit-license.php
 */

using System;
using System.Collections.Generic;
using System.Text;

namespace MadWizard.WinUSBNet
{
    /// <summary>
    /// Exception used by WinUSBNet to indicate errors. This is the
    /// main exception to catch when using the library.
    /// </summary>
    public class USBException : Exception
    {
        /// <summary>
        /// Constructs a new USBException with the given message
        /// </summary>
        /// <param name="message">The message describing the exception</param>
        public USBException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Constructs a new USBException with the given message and underlying exception
        /// that caused the USBException.
        /// </summary>
        /// <param name="message">The message describing the exception</param>
        /// <param name="innerException">The underlying exception causing the USBException</param>
        public USBException(string message, Exception innerException)
            : base(message, innerException)
        {
        }
    }
}