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