Added error domains and exception types