Including exception API.
Add documentation for exception API.