Type Alias: MoodleErrorCode
type MoodleErrorCode =
| "invalid-input"
| "not-found"
| "not-available"
| "outside-site"
| "unexpected-page"
| "logout-failed"
| "chromium-install-failed"
| "background-browser"
| "browser-busy"
| "moodle-url"
| "browser-not-found"
| "browser-downloading"
| "no-display"
| "not-logged-in"
| "login-timeout"
| "login-window-closed"
| "moodle-service"
| "form"
| "activity-settings"
| "backup"
| "not-viewable"
| "not-an-assignment"
| "grading"
| "submission"
| "calendar"
| "completion"
| "course"
| "not-a-forum"
| "forum"
| "gradebook"
| "no-grade-report"
| "not-an-h5p-activity"
| "scorm"
| "workshop"
| "lesson"
| "message"
| "no-participants"
| "enrolment"
| "question-bank"
| "report"
| "quiz"
| "choice"
| "survey";
Defined in: core/errors.ts:6
What went wrong, stable across releases: match errors by code (or by class), never by message,
whose wording may change. Each error class has its own code; MoodleError itself takes one
of the generic ones.