Index: src/OFData+MessagePackParsing.h ================================================================== --- src/OFData+MessagePackParsing.h +++ src/OFData+MessagePackParsing.h @@ -27,19 +27,32 @@ @interface OFData (MessagePackParsing) /** * @brief The data interpreted as MessagePack representation and parsed as an * object. + * + * @throw OFInvalidFormatException The MessagePack representation contained in + * the data contained an invalid format + * @throw OFTruncatedDataException The MessagePack representation contained in + * the data is truncated + * @throw OFInvalidArgumentException The @ref itemSize of the data is not 1 + * @throw OFOutOfRangeException The depth limit has been exceeded */ @property (readonly, nonatomic) id objectByParsingMessagePack; /** * @brief Parses the MessagePack representation and returns it as an object. * * @param depthLimit The maximum depth the parser should accept (defaults to 32 * if not specified, 0 means no limit (insecure!)) * @return The MessagePack representation as an object + * @throw OFInvalidFormatException The MessagePack representation contained in + * the data contained an invalid format + * @throw OFTruncatedDataException The MessagePack representation contained in + * the data is truncated + * @throw OFInvalidArgumentException The @ref itemSize of the data is not 1 + * @throw OFOutOfRangeException The depth limit has been exceeded */ - (id)objectByParsingMessagePackWithDepthLimit: (size_t)depthLimit; @end OF_ASSUME_NONNULL_END