Rewrite to custom exceptions + insert API docs.