sozsoft-platform/api/modules/Sozsoft.Mcp/Sozsoft.Mcp.Domain.Shared/McpErrorCodes.cs
2026-09-10 17:40:43 +03:00

28 lines
1.5 KiB
C#

namespace Sozsoft.Mcp;
/// <summary>
/// MCP hatalarinin dil anahtarlari. Karsiliklari platformun <c>LanguagesData.json</c>
/// dosyasinda EN + TR olarak durur; koda gomulu metin kullanilmaz.
/// </summary>
public static class McpErrorCodes
{
private const string Prefix = "App.Mcp.Error.";
public const string NoServerRecord = Prefix + "NoServerRecord";
public const string ToolDisabled = Prefix + "ToolDisabled";
public const string EmptyQuery = Prefix + "EmptyQuery";
public const string SingleStatementOnly = Prefix + "SingleStatementOnly";
public const string ReadOnlyStatementRequired = Prefix + "ReadOnlyStatementRequired";
public const string ForbiddenKeyword = Prefix + "ForbiddenKeyword";
public const string InvalidIdentifier = Prefix + "InvalidIdentifier";
public const string InvalidParameterName = Prefix + "InvalidParameterName";
public const string UnsupportedObjectKind = Prefix + "UnsupportedObjectKind";
public const string CustomEndpointNotFound = Prefix + "CustomEndpointNotFound";
public const string MissingParameters = Prefix + "MissingParameters";
public const string ListFormCodeRequired = Prefix + "ListFormCodeRequired";
public const string ValuesRequired = Prefix + "ValuesRequired";
public const string KeysRequired = Prefix + "KeysRequired";
public const string DictionaryNotFound = Prefix + "DictionaryNotFound";
public const string RegistrationLimitReached = Prefix + "RegistrationLimitReached";
public const string RedirectUriNotAllowed = Prefix + "RedirectUriNotAllowed";
}