Exception thrown when the supplied data does not fit any QR Code version.
More...
Inherits std::length_error.
|
| | data_too_long (const std::string &msg) |
| | Constructs the exception with a descriptive message.
|
Exception thrown when the supplied data does not fit any QR Code version.
Ways to handle this exception include:
- Decrease the error correction level if it was greater than Ecc::LOW.
- If encodeSegments() was called with a maxVersion argument, increase it if it was less than QrCode::MAX_VERSION.
- Split the text data into better or optimal segments to reduce the number of bits required.
- Change the text or binary data to be shorter.
- Change the text to fit the character set of a particular segment mode (e.g. alphanumeric).
- Propagate the error upward to the caller/user.
Definition at line 694 of file QRCode.h.
◆ data_too_long()
| data_too_long::data_too_long |
( |
const std::string & | msg | ) |
|
|
explicit |
Constructs the exception with a descriptive message.
- Parameters
-
| [in] | msg | The error message describing why the data is too long. |
The documentation for this class was generated from the following file: