summaryrefslogtreecommitdiff
path: root/VRCSDK3Worlds/Assets/VRCSDK/SDK3/Runtime/Midi/PortMidi/MidiException.cs
blob: 551297b2f6bc918c045b1c121c6580ca0da70dcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;

namespace PortMidi
{
    public class MidiException : Exception
    {
        MidiErrorType error_type;

        public MidiException(MidiErrorType errorType, string message)
            : this(errorType, message, null)
        {
        }

        public MidiException(MidiErrorType errorType, string message, Exception innerException)
            : base(message, innerException)
        {
            error_type = errorType;
        }

        public MidiErrorType ErrorType => error_type;
    }
}