Policy of a format codec: options of each side and errors translation.
More...
#include <formatCodec.hpp>
Policy of a format codec: options of each side and errors translation.
Codec plugins specialize it for their format (a format does not know Side ): anch-codec-json sets the constraints checks and limits of each side and translates payload size errors into ContentTooLarge . The default policy uses the default options for both sides and does not translate errors.
- Template Parameters
-
- Since
- 0.3
◆ configure()
Configure the options of a side (they are copied from the format default options)
- Parameters
-
| options | the options |
| side | the side |
◆ translate()
Translate a deserialization error: throw another exception, or return to rethrow the error
- Parameters
-
The documentation for this struct was generated from the following file: