mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
19 lines
598 B
C#
19 lines
598 B
C#
using System;
|
|
|
|
namespace Octokit.Tests.Conventions
|
|
{
|
|
public class InvalidDebuggerDisplayAttributeValueException : Exception
|
|
{
|
|
public InvalidDebuggerDisplayAttributeValueException(Type modelType, string value)
|
|
: base(CreateMessage(modelType, value))
|
|
{ }
|
|
|
|
static string CreateMessage(Type modelType, string value)
|
|
{
|
|
return string.Format(
|
|
"Model type '{0}' has invalid DebuggerDisplayAttribute value '{1}'. Expected '{{DebuggerDisplay, nq}}'",
|
|
modelType.FullName,
|
|
value);
|
|
}
|
|
}
|
|
} |