42 instantiations of CborContentException
System.Formats.Cbor (41)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
24
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (5)
127
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
146
throw new
CborContentException
(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType));
221
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
277
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
285
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.Integer.cs (3)
150
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
216
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidIntegerEncoding);
223
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (6)
39
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode));
54
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
83
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
146
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode));
151
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
167
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
54
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
65
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
75
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
82
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
90
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
103
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Simple.cs (1)
175
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.String.cs (9)
35
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
70
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
143
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
180
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
199
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e);
226
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
310
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
475
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
514
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e);
System\Formats\Cbor\Reader\CborReader.Tag.cs (10)
69
throw new
CborContentException
(SR.Cbor_Reader_InvalidDateTimeEncoding);
77
throw new
CborContentException
(SR.Cbor_Reader_InvalidDateTimeEncoding);
124
throw new
CborContentException
(SR.Cbor_Reader_InvalidUnixTimeEncoding);
131
throw new
CborContentException
(SR.Cbor_Reader_InvalidUnixTimeEncoding);
174
throw new
CborContentException
(SR.Cbor_Reader_InvalidBigNumEncoding);
213
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
227
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
249
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
255
throw new
CborContentException
(SR.Cbor_Reader_InvalidDecimalEncoding);
289
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
323
throw new
CborContentException
(SR.CoseHeaderMapCborEncodedValueNotValid);
46 references to CborContentException
System.Formats.Cbor (39)
System\Formats\Cbor\CborContentException.cs (3)
14
/// Initializes a new instance of the <see cref="
CborContentException
" /> class using the provided message.
24
/// Initializes a new instance of the <see cref="
CborContentException
" /> class,
36
/// Initializes a new instance of the <see cref="
CborContentException
" /> class with serialized data.
System\Formats\Cbor\Reader\CborReader.Array.cs (2)
11
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
46
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.cs (1)
69
/// <exception cref="
CborContentException
"><para>The data item is not a valid CBOR data item encoding.</para>
System\Formats\Cbor\Reader\CborReader.Integer.cs (5)
16
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
33
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
51
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
68
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
85
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.Map.cs (2)
17
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
70
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.PeekState.cs (1)
12
/// <exception cref="
CborContentException
">The underlying data is not a well-formed CBOR encoding.</exception>
System\Formats\Cbor\Reader\CborReader.Simple.cs (5)
17
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
58
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
102
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
127
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
152
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.Simple.netcoreapp.cs (1)
17
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.SkipValue.cs (2)
13
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
26
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.String.cs (10)
21
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
56
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
99
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
127
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
154
/// <exception cref="
CborContentException
">There was an unexpected end of CBOR encoding data.</exception>
166
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
212
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
259
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
294
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
321
/// <exception cref="
CborContentException
">There was an unexpected end of CBOR encoding data.</exception>
System\Formats\Cbor\Reader\CborReader.Tag.cs (6)
14
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
32
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
46
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
94
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
146
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
194
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Writer\CborWriter.cs (1)
164
catch (
CborContentException
e)
System.Security.Cryptography.Cose (7)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
326
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (4)
144
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException or OverflowException)
171
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
198
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
230
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
166
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
252
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)