Files
octokit.net/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs
2015-12-16 21:23:36 +02:00

28 lines
798 B
C#

using System;
using System.Runtime.Serialization;
namespace Octokit.Tests.Conventions
{
public class InterfaceNotFoundException : Exception
{
public InterfaceNotFoundException() { }
public InterfaceNotFoundException(string type)
: base(CreateMessage(type))
{ }
public InterfaceNotFoundException(string type, Exception innerException)
: base(CreateMessage(type), innerException)
{ }
protected InterfaceNotFoundException(SerializationInfo info, StreamingContext context)
: base(info, context)
{ }
static string CreateMessage(string type)
{
return string.Format("Could not find the interface {0}. Add this to the Octokit.Reactive project", type);
}
}
}