mirror of
https://github.com/Biarity/Sieve.git
synced 2025-04-12 23:12:53 +02:00
40 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|