Add SaveException class

* Modified Client::checkResult so that it throws a SaveException