Update doc
Implement error exception