add: exeption message
This commit is contained in:
		@ -73,12 +73,12 @@ void Bureaucrat::signForm(Form& form) const
 | 
			
		||||
 | 
			
		||||
const char* Bureaucrat::GradeTooLowException::what() const throw()
 | 
			
		||||
{
 | 
			
		||||
	return "Too small grade";
 | 
			
		||||
	return "Too low grade";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char* Bureaucrat::GradeTooHighException::what() const throw()
 | 
			
		||||
{
 | 
			
		||||
	return "Too big grade";
 | 
			
		||||
	return "Too high grade";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
std::ostream& operator<<(std::ostream &stream, Bureaucrat &src)
 | 
			
		||||
 | 
			
		||||
@ -81,3 +81,13 @@ std::ostream& operator<<(std::ostream& os, const Form& src)
 | 
			
		||||
 | 
			
		||||
	return os;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char* Bureaucrat::GradeTooLowException::what() const throw()
 | 
			
		||||
{
 | 
			
		||||
	return "grade is to low";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const char* Bureaucrat::GradeTooHighException::what() const throw()
 | 
			
		||||
{
 | 
			
		||||
	return "grade is to high";
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user