53 instantiations of CborContentException
Microsoft.AspNetCore.Identity (5)
Passkeys\CredentialPublicKey.cs (3)
140
throw new
CborContentException
("The COSE key encodes a private key.");
169
throw new
CborContentException
("The COSE key encodes a private key.");
187
_ => throw new
CborContentException
($"Unrecognized COSE crv value {crv}"),
Passkeys\Ctap2CborReader.cs (2)
21
throw new
CborContentException
("CTAP2 canonical CBOR encoding form requires there to be a definite number of keys.");
63
throw new
CborContentException
("Unexpected COSE key label");
System.Formats.Cbor (47)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
25
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (7)
238
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
248
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
267
throw new
CborContentException
(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType));
299
throw new
CborContentException
(SR.Format(SR.Cbor_Reader_MaximumDepthExceeded, MaxDepth));
352
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
408
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
416
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.Integer.cs (4)
150
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
171
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
237
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidIntegerEncoding);
244
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (6)
40
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode));
59
throw new
CborContentException
(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize);
88
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
151
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode));
156
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
172
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
71
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
82
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue);
92
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
99
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_KeyMissingValue);
107
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte);
120
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.SkipValue.cs (2)
23
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
60
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
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));
148
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
185
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
204
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e);
231
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
320
throw new
CborContentException
(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
487
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
526
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e);
System\Formats\Cbor\Reader\CborReader.Tag.cs (11)
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);
279
throw new
CborContentException
(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
305
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);
52 references to CborContentException
Microsoft.AspNetCore.Identity (1)
Passkeys\AttestationObject.cs (1)
50
catch (
CborContentException
ex)
System.Formats.Cbor (44)
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>
47
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.cs (1)
116
/// <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>
75
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.PeekState.cs (4)
13
/// <exception cref="
CborContentException
">The underlying data is not a well-formed CBOR encoding.</exception>
17
/// and the buffer ends after a complete root-level value, instead of throwing <see cref="
CborContentException
" />.</para>
20
/// a single buffer, in which case the reading method throws <see cref="
CborContentException
" />.</para>
22
/// or <see cref="ReadEncodedValue" />, can still throw <see cref="
CborContentException
" /> on truncated data.</para>
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 (4)
13
/// <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>
45
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
69
/// <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>
131
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
159
/// <exception cref="
CborContentException
">There was an unexpected end of CBOR encoding data.</exception>
171
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
217
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
264
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
303
/// <exception cref="
CborContentException
"><para>The next value has an invalid CBOR encoding.</para>
331
/// <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)
210
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)
135
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException or OverflowException)
162
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
189
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
221
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
165
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)
250
catch (Exception ex) when (ex is
CborContentException
or InvalidOperationException)