doc: Error handling