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