Files
octokit.net/Octokit.Tests.Conventions/Exception/InterfaceNotFoundException.cs
Mickaël Derriey 13d5dab516 Port to .NET Core (#1503)
Port to .NET Core
2017-01-21 14:42:02 +10:00

23 lines
620 B
C#

using System;
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)
{ }
static string CreateMessage(string type)
{
return string.Format("Could not find the interface {0}. Add this to the Octokit.Reactive project", type);
}
}
}