Please use the Assertion module to throw errors.