mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Add OutputMemoryStream and port most classes to use it
This commit is contained in:
@@ -49,7 +49,7 @@ public:
|
||||
/**
|
||||
* \brief Exception thrown when an option is not found.
|
||||
*/
|
||||
class option_not_found : exception_base {
|
||||
class option_not_found : public exception_base {
|
||||
public:
|
||||
// try to avoid allocations by doing this.
|
||||
const char* what() const throw() {
|
||||
@@ -67,6 +67,16 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Exception thrown when serializing a packet fails.
|
||||
*/
|
||||
class serialization_error : public exception_base {
|
||||
public:
|
||||
const char* what() const throw() {
|
||||
return "Serialization error";
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* \brief Exception thrown when a PDU is not found when using PDU::rfind_pdu.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user