Add documentation for exceptions.