error parameter should be documented as well.