Utilities functions now throw exceptions when called on invalid result enumerators