adding errors to the api docs

Signed-off-by: Daniel Newns <dan@higgsdesign.com>