Issue #52: Add missing documentation for errors.

Copy pasted something I found on the Internet.