Add documentation for exceptions