Enhances code documentation and structure for plugin #3

Merged
AlexKucera merged 20 commits from docstrings into master 2025-10-25 10:50:22 +02:00
Showing only changes of commit d50f11269b - Show all commits
+2 -2
View File
@@ -77,9 +77,9 @@ export class CleanupCommand {
if (error instanceof ApiKeyError) { if (error instanceof ApiKeyError) {
new Notice('API key error. Please check your settings.'); new Notice('API key error. Please check your settings.');
} else if (error instanceof TextTooLongError) { } else if (error instanceof TextTooLongError) {
new Notice('Text is too long for processing.'); new Notice(error.message);
} else if (error instanceof ServiceUnavailableError) { } else if (error instanceof ServiceUnavailableError) {
new Notice('Service temporarily unavailable. Please try again.'); new Notice(error.message);
} else if (error instanceof Error) { } else if (error instanceof Error) {
new Notice(`Cleanup failed: ${error.message}`); new Notice(`Cleanup failed: ${error.message}`);
} else { } else {