Skip to content

Commit

Permalink
Merge pull request #1077 from mhughes2k/patch-1
Browse files Browse the repository at this point in the history
Update index.md
  • Loading branch information
andrewnicols authored Jul 29, 2024
2 parents 6074e49 + dccea7b commit 61544a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion general/development/policies/codingstyle/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2054,7 +2054,12 @@ We have a set of custom exception classes. The base class is moodle_exception. Y

To get the full list of exception types, search for the regular expression 'class +\w+_exception +extends' or ask your IDE to list all the subclasses of moodle_exception.

Where appropriate, you should create new subclasses of moodle_exception for use in your code.
Where appropriate, you should create new subclasses of moodle_exception for use in your code.


<Since version="4.5" issueNumber="MDL-81903" />

If you create a custom exception class it *may* live in the `classes/exception/` directory, and be namespaced in `<plugin>/exception/`

A few notable exception types:

Expand Down

0 comments on commit 61544a2

Please sign in to comment.