Sieve/Sieve/Exceptions/SieveIncompatibleMethodException.cs
2018-02-14 08:06:26 +10:00

40 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Text;
namespace Sieve.Exceptions
{
public class SieveIncompatibleMethodException : Exception
{
public string MethodName { get; protected set; }
public Type ExpectedType { get; protected set; }
public Type ActualType { get; protected set; }
public SieveIncompatibleMethodException(
string methodName,
Type expectedType,
Type actualType,
string message)
: base(message)
{
MethodName = methodName;
ExpectedType = expectedType;
ActualType = actualType;
}
public SieveIncompatibleMethodException(
string methodName,
Type expectedType,
Type actualType,
string message,
Exception innerException)
: base(message, innerException)
{
MethodName = methodName;
ExpectedType = expectedType;
ActualType = actualType;
}
}
}