MDL-20677 exception used in error() instead of print&die - this helps a lot when you need custom default exception handlers; it also reduces duplication in code
MDL-20677 exception used in error() instead of print&die - this helps a lot when you need custom default exception handlers; it also reduces duplication in code

dilawar/moodle