48 instantiations of CborContentException
Microsoft.AspNetCore.Identity (5)
Passkeys\CredentialPublicKey.cs (3)
140throw new CborContentException("The COSE key encodes a private key."); 169throw new CborContentException("The COSE key encodes a private key."); 187_ => throw new CborContentException($"Unrecognized COSE crv value {crv}"),
Passkeys\Ctap2CborReader.cs (2)
21throw new CborContentException("CTAP2 canonical CBOR encoding form requires there to be a definite number of keys."); 63throw new CborContentException("Unexpected COSE key label");
System.Formats.Cbor (42)
System\Formats\Cbor\Reader\CborReader.Array.cs (1)
25throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.cs (6)
159throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 178throw new CborContentException(SR.Format(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem, (int)nextByte.MajorType)); 210throw new CborContentException(SR.Format(SR.Cbor_Reader_MaximumDepthExceeded, MaxDepth)); 263throw new CborContentException(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue); 319throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 327throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer);
System\Formats\Cbor\Reader\CborReader.Integer.cs (3)
150throw new CborContentException(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize); 216throw new CborContentException(SR.Cbor_Reader_InvalidCbor_InvalidIntegerEncoding); 223throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_NonCanonicalIntegerRepresentation, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.Map.cs (6)
40throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_RequiresDefiniteLengthItems, ConformanceMode)); 55throw new CborContentException(SR.Cbor_Reader_DefiniteLengthExceedsBufferSize); 84throw new CborContentException(SR.Cbor_Reader_InvalidCbor_KeyMissingValue); 147throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_KeysNotInSortedOrder, ConformanceMode)); 152throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode)); 168throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_ContainsDuplicateKeys, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.PeekState.cs (6)
54throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedEndOfBuffer); 65throw new CborContentException(SR.Cbor_Reader_InvalidCbor_TagNotFollowedByValue); 75throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte); 82throw new CborContentException(SR.Cbor_Reader_InvalidCbor_KeyMissingValue); 90throw new CborContentException(SR.Cbor_Reader_InvalidCbor_UnexpectedBreakByte); 103throw new CborContentException(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem);
System\Formats\Cbor\Reader\CborReader.Simple.cs (1)
175throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_InvalidSimpleValueEncoding, ConformanceMode));
System\Formats\Cbor\Reader\CborReader.String.cs (9)
35throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 70throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 144throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 181throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 200throw new CborContentException(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e); 227throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 312throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_IndefiniteLengthItemsNotSupported, ConformanceMode)); 479throw new CborContentException(SR.Cbor_Reader_InvalidCbor_IndefiniteLengthStringContainsInvalidDataItem); 518throw new CborContentException(SR.Cbor_Reader_InvalidCbor_InvalidUtf8StringEncoding, e);
System\Formats\Cbor\Reader\CborReader.Tag.cs (10)
69throw new CborContentException(SR.Cbor_Reader_InvalidDateTimeEncoding); 77throw new CborContentException(SR.Cbor_Reader_InvalidDateTimeEncoding); 124throw new CborContentException(SR.Cbor_Reader_InvalidUnixTimeEncoding); 131throw new CborContentException(SR.Cbor_Reader_InvalidUnixTimeEncoding); 174throw new CborContentException(SR.Cbor_Reader_InvalidBigNumEncoding); 213throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 227throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 249throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 255throw new CborContentException(SR.Cbor_Reader_InvalidDecimalEncoding); 289throw new CborContentException(SR.Format(SR.Cbor_ConformanceMode_TagsNotSupported, ConformanceMode));
System.Security.Cryptography.Cose (1)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
323throw new CborContentException(SR.CoseHeaderMapCborEncodedValueNotValid);
47 references to CborContentException
Microsoft.AspNetCore.Identity (1)
Passkeys\AttestationObject.cs (1)
50catch (CborContentException ex)
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> 47/// <exception cref="CborContentException"><para>The next value has an invalid CBOR encoding.</para>
System\Formats\Cbor\Reader\CborReader.cs (1)
101/// <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> 71/// <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> 155/// <exception cref="CborContentException">There was an unexpected end of CBOR encoding data.</exception> 167/// <exception cref="CborContentException"><para>The next value has an invalid CBOR encoding.</para> 213/// <exception cref="CborContentException"><para>The next value has an invalid CBOR encoding.</para> 260/// <exception cref="CborContentException"><para>The next value has an invalid CBOR encoding.</para> 295/// <exception cref="CborContentException"><para>The next value has an invalid CBOR encoding.</para> 323/// <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)
210catch (CborContentException e)
System.Security.Cryptography.Cose (7)
System\Security\Cryptography\Cose\CoseHeaderMap.cs (1)
326catch (Exception ex) when (ex is CborContentException or InvalidOperationException)
System\Security\Cryptography\Cose\CoseHeaderValue.cs (4)
135catch (Exception ex) when (ex is CborContentException or InvalidOperationException or OverflowException) 162catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 189catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 221catch (Exception ex) when (ex is CborContentException or InvalidOperationException)
System\Security\Cryptography\Cose\CoseMessage.cs (2)
165catch (Exception ex) when (ex is CborContentException or InvalidOperationException) 250catch (Exception ex) when (ex is CborContentException or InvalidOperationException)