godotVmcSharp/Exceptions/MissingArgumentsException.cs

17 lines
1.1 KiB
C#
Raw Permalink Normal View History

using System;
using godotOscSharp;
namespace godotVmcSharp
{
public class MissingArgumentsException : ArgumentNullException
{
public MissingArgumentsException() : base("Missing parameters.") {}
public MissingArgumentsException(String message): base(message) {}
public MissingArgumentsException(String message, Exception inner): base(message, inner) {}
public MissingArgumentsException(String address, String expected, int actual) : base($"{address}", "Missing parameters: expecting {expected}, received {actual}.") {}
public MissingArgumentsException(String address, String expected, int actual, Exception inner) : base($"Missing parameters for {address}: expecting {expected}, received {actual}.", inner) {}
public MissingArgumentsException(OscAddress address, String expected, int actual) : base($"{address.ToString()}", "Missing parameters: expecting {expected}, received {actual}.") {}
public MissingArgumentsException(OscAddress address, String expected, int actual, Exception inner) : base($"Missing parameters for {address.ToString()}: expecting {expected}, received {actual}.", inner) {}
}
}