document custom error handling.