updating error docs for api documentation

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