mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
28 lines
798 B
C#
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);
|
|
}
|
|
}
|
|
}
|