documentation for errors