[runtime] Don't return success on invalid parameters, raise an exception instead.