]> git.mjollnir.org Git - moodle.git/commit
exceptions: MDL-16175 new invalid_state_exception
authortjhunt <tjhunt>
Fri, 8 May 2009 07:47:02 +0000 (07:47 +0000)
committertjhunt <tjhunt>
Fri, 8 May 2009 07:47:02 +0000 (07:47 +0000)
commitcce1b0b9ca02bc275f8b553e9866834c5e51e17b
treeae452c48cef58efbf47f8bfa164f425b70235825
parent33e2e924534834924d9c2bc0ebc8d7353489743f
exceptions: MDL-16175 new invalid_state_exception

This is for those situations where something basically impossible happens,
like $context->contextlevel not having one of the valid value, and you
want to throw an exception (for example in the default: case of a switch)
rather than just ignoring the possibility.
lang/en_utf8/error.php
lib/setuplib.php