//--------------------------------------------------------------------------- Author::Author(std::string const &firstname, std::string const &lastname) : _firstname(firstname), _lastname(lastname) { myWait( 200 ); if (firstname.empty() || lastname.empty()) throw InvalidAuthor() ; }
void Book::setAuthor(string author) { if (author.empty()) throw InvalidAuthor(); else this->author = author; }