Fix doc typehint
Remove unused exception methods