sozsoft-platform/api/modules/Sozsoft.Mcp/Sozsoft.Mcp.Domain.Shared/McpErrorCodes.cs

80 lines
5.6 KiB
C#
Raw Normal View History

2026-09-17 09:01:14 +00:00
namespace Sozsoft.Mcp;
/// <summary>
2026-10-05 12:58:59 +00:00
/// MCP hatalarinin dil anahtarlari. Karsiliklari platformun <c>configs/seeds/data/App.Languages.LanguageText.json</c>
2026-09-17 09:01:14 +00:00
/// 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 TenantToolDisabled = Prefix + "TenantToolDisabled";
public const string PermissionDenied = Prefix + "PermissionDenied";
public const string PermissionDeniedUnspecified = Prefix + "PermissionDeniedUnspecified";
2026-09-17 09:01:14 +00:00
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 InvalidLoadOption = Prefix + "InvalidLoadOption";
2026-09-17 09:01:14 +00:00
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";
2026-09-18 13:47:23 +00:00
public const string DevGuideUnavailable = Prefix + "DevGuideUnavailable";
public const string DevGuideSectionNotFound = Prefix + "DevGuideSectionNotFound";
2026-10-02 06:07:01 +00:00
public const string DevGuideSearchMatches = Prefix + "DevGuideSearchMatches";
2026-09-18 13:47:23 +00:00
public const string InvalidWizard = Prefix + "InvalidWizard";
2026-09-25 07:52:06 +00:00
public const string SeedRowsInvalid = Prefix + "SeedRowsInvalid";
public const string SeedRowsNotAllowed = Prefix + "SeedRowsNotAllowed";
public const string SeedRowsUnknownFields = Prefix + "SeedRowsUnknownFields";
2026-09-18 13:47:23 +00:00
public const string ComponentNameRequired = Prefix + "ComponentNameRequired";
public const string ComponentCodeRequired = Prefix + "ComponentCodeRequired";
public const string ComponentNotFound = Prefix + "ComponentNotFound";
public const string VerifyWizardFileInvalid = Prefix + "VerifyWizardFileInvalid";
public const string VerifyWizardPending = Prefix + "VerifyWizardPending";
public const string VerifyMenuMissing = Prefix + "VerifyMenuMissing";
public const string VerifyMenuDisabled = Prefix + "VerifyMenuDisabled";
public const string VerifyMenuUrlMismatch = Prefix + "VerifyMenuUrlMismatch";
public const string VerifyPermissionMissing = Prefix + "VerifyPermissionMissing";
public const string VerifySelectPassed = Prefix + "VerifySelectPassed";
public const string VerifySelectFailed = Prefix + "VerifySelectFailed";
public const string SelectFailed = Prefix + "SelectFailed";
public const string VerifyComponentInactive = Prefix + "VerifyComponentInactive";
public const string VerifyComponentRouteMismatch = Prefix + "VerifyComponentRouteMismatch";
public const string VerifySeedClosureIncomplete = Prefix + "VerifySeedClosureIncomplete";
public const string VerifySeedClosureSkipped = Prefix + "VerifySeedClosureSkipped";
public const string DevRequestNotFound = Prefix + "DevRequestNotFound";
public const string DevRequestAmbiguous = Prefix + "DevRequestAmbiguous";
public const string DevRequestNotReady = Prefix + "DevRequestNotReady";
public const string DevRequestNotAnalyzable = Prefix + "DevRequestNotAnalyzable";
public const string DevRequestAnalysisRequired = Prefix + "DevRequestAnalysisRequired";
public const string DevRequestNoteRequired = Prefix + "DevRequestNoteRequired";
public const string DevRequestSubTasksRequired = Prefix + "DevRequestSubTasksRequired";
public const string DevRequestSubTasksInvalid = Prefix + "DevRequestSubTasksInvalid";
2026-10-04 15:04:16 +00:00
public const string DevRequestModuleDocsIncomplete = Prefix + "DevRequestModuleDocsIncomplete";
public const string WizardDescriptionTooShort = Prefix + "WizardDescriptionTooShort";
2026-09-18 13:47:23 +00:00
public const string VisualDesignerComponent = Prefix + "VisualDesignerComponent";
public const string ReportNameRequired = Prefix + "ReportNameRequired";
public const string ReportHtmlRequired = Prefix + "ReportHtmlRequired";
public const string ReportCategoryRequired = Prefix + "ReportCategoryRequired";
public const string ReportCategoryNotFound = Prefix + "ReportCategoryNotFound";
public const string ReportTemplateNotFound = Prefix + "ReportTemplateNotFound";
public const string ReportListFormNotFound = Prefix + "ReportListFormNotFound";
public const string ReportPlaceholdersUnknown = Prefix + "ReportPlaceholdersUnknown";
2026-09-18 13:47:23 +00:00
public const string TableColumnsRequired = Prefix + "TableColumnsRequired";
public const string UnsupportedColumnType = Prefix + "UnsupportedColumnType";
public const string InvalidColumnLength = Prefix + "InvalidColumnLength";
public const string InvalidDefaultValue = Prefix + "InvalidDefaultValue";
public const string DuplicateColumn = Prefix + "DuplicateColumn";
public const string TableAlreadyExists = Prefix + "TableAlreadyExists";
2026-09-17 09:01:14 +00:00
}