doc update
This commit is contained in:
parent
90e62b739b
commit
5f48849c4e
117 changed files with 3780 additions and 2135 deletions
|
@ -6,28 +6,30 @@
|
|||
|
||||
// SOURCE: https://stackoverflow.com/a/8152888
|
||||
|
||||
/*! Exception for USART problems, for instance buffer overflow. */
|
||||
|
||||
class USARTException: public std::exception
|
||||
{
|
||||
public:
|
||||
explicit USARTException(const char* message) : msg(message)
|
||||
{
|
||||
}
|
||||
explicit USARTException(const char* message) : msg(message)
|
||||
{
|
||||
}
|
||||
|
||||
explicit USARTException(const std::string& message) : msg(message)
|
||||
{
|
||||
}
|
||||
explicit USARTException(const std::string& message) : msg(message)
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~USARTException() throw ()
|
||||
{
|
||||
}
|
||||
virtual ~USARTException() throw ()
|
||||
{
|
||||
}
|
||||
|
||||
virtual const char* what() const throw ()
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
virtual const char* what() const throw ()
|
||||
{
|
||||
return msg.c_str();
|
||||
}
|
||||
|
||||
protected:
|
||||
std::string msg;
|
||||
std::string msg;
|
||||
};
|
||||
|
||||
#endif // USARTEXCEPTION_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue