Skip to content

Commit 61544a2

Browse files
authored
Merge pull request #1077 from mhughes2k/patch-1
Update index.md
2 parents 6074e49 + dccea7b commit 61544a2

File tree

1 file changed

+6
-1
lines changed
  • general/development/policies/codingstyle

1 file changed

+6
-1
lines changed

general/development/policies/codingstyle/index.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -2054,7 +2054,12 @@ We have a set of custom exception classes. The base class is moodle_exception. Y
20542054

20552055
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.
20562056

2057-
Where appropriate, you should create new subclasses of moodle_exception for use in your code.
2057+
Where appropriate, you should create new subclasses of moodle_exception for use in your code.
2058+
2059+
2060+
<Since version="4.5" issueNumber="MDL-81903" />
2061+
2062+
If you create a custom exception class it *may* live in the `classes/exception/` directory, and be namespaced in `<plugin>/exception/`
20582063

20592064
A few notable exception types:
20602065

0 commit comments

Comments
 (0)