System::Text::Json::ThrowHelper class

ThrowHelper class

class ThrowHelper

Methods

MethodDescription
static AddJsonExceptionInformation(ReadStack&, Utf8JsonReader&, JsonException)
static AddJsonExceptionInformation(WriteStack&, JsonException)
static AppendMissingProperty(System::SharedPtr<StringBuilder>, String)
static GetArgumentException_ReadInvalidUTF16(EncoderFallbackException)
static GetInvalidOperationException(String, Exception)
static GetInvalidOperationException(ExceptionResource, int32_t, int32_t, uint8_t, JsonTokenType)
static GetInvalidOperationException_ExpectedArray(JsonTokenType)
static GetInvalidOperationException_ExpectedObject(JsonTokenType)
static GetInvalidOperationException_NoMetadataForTypeProperties(System::SharedPtr<Serialization::Metadata::IJsonTypeInfoResolver>, const TypeInfo&)
static GetInvalidOperationException_ReadInvalidUTF8(DecoderFallbackException)
static GetJsonElementWrongTypeException(JsonValueKind, JsonValueKind)
static GetJsonElementWrongTypeException(String, JsonValueKind)
static GetJsonReaderException(Utf8JsonReader&, ExceptionResource, uint8_t, ReadOnlySpan<uint8_t>)
static GetNotSupportedException_AmbiguousMetadataForType(const TypeInfo&, const TypeInfo&, const TypeInfo&)
static GetPrintableString(uint8_t)
static ReThrowWithPath(ReadStack&, JsonReaderException)
static ReThrowWithPath(ReadStack&, Utf8JsonReader&, Exception)
static ReThrowWithPath(WriteStack&, Exception)
static ThrowArgumentException(String)
static ThrowArgumentException(ReadOnlySpan<uint8_t>, ReadOnlySpan<uint8_t>)
static ThrowArgumentException(ReadOnlySpan<uint8_t>, ReadOnlySpan<char16_t>)
static ThrowArgumentException(ReadOnlySpan<char16_t>, ReadOnlySpan<uint8_t>)
static ThrowArgumentException(ReadOnlySpan<char16_t>, ReadOnlySpan<char16_t>)
static ThrowArgumentException_CannotSerializeInvalidType(String, const TypeInfo&, const TypeInfo&, String)
static ThrowArgumentException_DeserializeWrongType(const TypeInfo&, System::SharedPtr<Object>)
static ThrowArgumentException_DestinationTooShort()
static ThrowArgumentException_InvalidOffLen()
static ThrowArgumentException_InvalidUTF16(int32_t)
static ThrowArgumentException_InvalidUTF8(ReadOnlySpan<uint8_t>)
static ThrowArgumentException_JsonPolymorphismOptionsAssociatedWithDifferentJsonTypeInfo(String)
static ThrowArgumentException_NodeValueNotAllowed(String)
static ThrowArgumentException_PropertyNameTooLarge(int32_t)
static ThrowArgumentException_SerializerDoesNotSupportComments(String)
static ThrowArgumentException_ValueNotSupported()
static ThrowArgumentException_ValueTooLarge(int64_t)
static ThrowArgumentNullException(ExceptionArgument)
static ThrowArgumentNullException(String)
static ThrowArgumentOutOfRangeException_CommentEnumMustBeInRange(String)
static ThrowArgumentOutOfRangeException_IndentCharacter(String)
static ThrowArgumentOutOfRangeException_IndentSize(String, int32_t, int32_t)
static ThrowArgumentOutOfRangeException_JsonNumberExponentTooLarge(String)
static ThrowArgumentOutOfRangeException_MaxDepthMustBePositive(String)
static ThrowArgumentOutOfRangeException_NeedNonNegNum(String)
static ThrowArgumentOutOfRangeException_NewLine(String)
static ThrowFormatException()
static ThrowFormatException(NumericType)
static ThrowFormatException(DataType)
ThrowHelper()
static ThrowInvalidCastException_DeserializeUnableToAssignValue(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException(int32_t, int32_t)
static ThrowInvalidOperationException(String)
static ThrowInvalidOperationException(ExceptionResource, int32_t, int32_t, uint8_t, JsonTokenType)
static ThrowInvalidOperationException_CannotMixEncodings(Utf8JsonWriter::EnclosingContainerType, Utf8JsonWriter::EnclosingContainerType)
static ThrowInvalidOperationException_CannotSerializeInvalidType(const TypeInfo&, const TypeInfo&, System::SharedPtr<Reflection::MemberInfo>)
static ThrowInvalidOperationException_CannotSkipOnPartial()
static ThrowInvalidOperationException_ConstructorParameterIncompleteBinding(const TypeInfo&)
static ThrowInvalidOperationException_CreateObjectConverterNotCompatible(const TypeInfo&)
static ThrowInvalidOperationException_DerivedTypeIsAlreadySpecified(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_DerivedTypeNotSupported(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_DeserializeUnableToAssignNull(const TypeInfo&)
static ThrowInvalidOperationException_ExpectedBoolean(JsonTokenType)
static ThrowInvalidOperationException_ExpectedChar(JsonTokenType)
static ThrowInvalidOperationException_ExpectedComment(JsonTokenType)
static ThrowInvalidOperationException_ExpectedNumber(JsonTokenType)
static ThrowInvalidOperationException_ExpectedPropertyName(JsonTokenType)
static ThrowInvalidOperationException_ExpectedString(JsonTokenType)
static ThrowInvalidOperationException_ExpectedStringComparison(JsonTokenType)
static ThrowInvalidOperationException_ExtensionDataCannotBindToCtorParam(String, System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_IgnoreConditionOnValueTypeInvalid(String, const TypeInfo&)
static ThrowInvalidOperationException_InvalidChainedResolver()
static ThrowInvalidOperationException_InvalidCustomTypeDiscriminatorPropertyName()
static ThrowInvalidOperationException_JsonIncludeOnInaccessibleProperty(String, const TypeInfo&)
static ThrowInvalidOperationException_JsonPropertyInfoIsBoundToDifferentJsonTypeInfo(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_JsonPropertyRequiredAndExtensionData(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_JsonPropertyRequiredAndNotDeserializable(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_JsonSerializerOptionsNoTypeInfoResolverSpecified()
static ThrowInvalidOperationException_JsonTypeInfoOnDeserializingCallbacksNotSupported(const TypeInfo&)
static ThrowInvalidOperationException_JsonTypeInfoOperationNotPossibleForKind(Serialization::Metadata::JsonTypeInfoKind)
static ThrowInvalidOperationException_MultiplePropertiesBindToConstructorParameters(const TypeInfo&, String, String, String)
static ThrowInvalidOperationException_NamingPolicyReturnNull(System::SharedPtr<JsonNamingPolicy>)
static ThrowInvalidOperationException_NeedLargerSpan()
static ThrowInvalidOperationException_NodeAlreadyHasParent()
static ThrowInvalidOperationException_NodeCycleDetected()
static ThrowInvalidOperationException_NodeElementCannotBeObjectOrArray()
static ThrowInvalidOperationException_NodeJsonObjectCustomConverterNotAllowedOnExtensionProperty()
static ThrowInvalidOperationException_NodeParentWrongType(String)
static ThrowInvalidOperationException_NodeUnableToConvert(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_NodeUnableToConvertElement(JsonValueKind, const TypeInfo&)
static ThrowInvalidOperationException_NodeWrongType(const System::SharedPtr<Array<String>>&)
static ThrowInvalidOperationException_NoMetadataForType(const TypeInfo&, System::SharedPtr<Serialization::Metadata::IJsonTypeInfoResolver>)
static ThrowInvalidOperationException_NoMetadataForTypeProperties(System::SharedPtr<Serialization::Metadata::IJsonTypeInfoResolver>, const TypeInfo&)
static ThrowInvalidOperationException_NumberHandlingOnPropertyInvalid(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_PolymorphicTypeConfigurationDoesNotSpecifyDerivedTypes(const TypeInfo&)
static ThrowInvalidOperationException_PropertyConflictsWithMetadataPropertyName(const TypeInfo&, String)
static ThrowInvalidOperationException_PropertyTypeNotNullable(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_ReadIncompleteUTF16()
static ThrowInvalidOperationException_ReadInvalidUTF16(int32_t)
static ThrowInvalidOperationException_ResolverTypeInfoOptionsNotCompatible()
static ThrowInvalidOperationException_ResolverTypeNotCompatible(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_SerializationDataExtensionPropertyInvalid(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_SerializationDuplicateTypeAttribute(const TypeInfo&)
static ThrowInvalidOperationException_SerializerConverterFactoryReturnsJsonConverterFactory(const TypeInfo&)
static ThrowInvalidOperationException_SerializerConverterFactoryReturnsNull(const TypeInfo&)
static ThrowInvalidOperationException_SerializerCycleDetected(int32_t)
static ThrowInvalidOperationException_SerializerOptionsReadOnly(System::SharedPtr<Serialization::JsonSerializerContext>)
static ThrowInvalidOperationException_SerializerPropertyNameConflict(const TypeInfo&, String)
static ThrowInvalidOperationException_SerializerPropertyNameNull(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowInvalidOperationException_TypeClassifierNotSupported(const TypeInfo&, const TypeInfo&)
static ThrowInvalidOperationException_TypeDicriminatorIdIsAlreadySpecified(const TypeInfo&, System::SharedPtr<Object>)
static ThrowInvalidOperationException_TypeDoesNotSupportPolymorphism(const TypeInfo&)
static ThrowInvalidOperationException_TypeInfoImmutable()
static ThrowInvalidOperationException_TypeInfoResolverChainImmutable()
static ThrowInvalidOperationException_UnsupportedEnumIdentifier(const TypeInfo&, String)
static ThrowInvalidOperationOrArgumentException(ReadOnlySpan<uint8_t>, int32_t, int32_t)
static ThrowInvalidOperationOrArgumentException(ReadOnlySpan<char16_t>, int32_t, int32_t)
static ThrowJsonElementWrongTypeException(JsonTokenType, JsonTokenType)
static ThrowJsonException(String)
static ThrowJsonException_DeserializeUnableToConvertValue(const TypeInfo&)
static ThrowJsonException_DuplicateMetadataProperty(ReadOnlySpan<uint8_t>)
static ThrowJsonException_DuplicatePropertyNotAllowed(System::SharedPtr<Serialization::Metadata::JsonPropertyInfoBase>)
static ThrowJsonException_DuplicatePropertyNotAllowed()
static ThrowJsonException_DuplicatePropertyNotAllowed(String)
static ThrowJsonException_DuplicatePropertyNotAllowed(ReadOnlySpan<uint8_t>)
static ThrowJsonException_JsonRequiredPropertyMissing(System::SharedPtr<Serialization::Metadata::JsonTypeInfoBase>, System::SharedPtr<Collections::BitArray>)
static ThrowJsonException_JsonRequiredPropertyMissing(const TypeInfo&, String)
static ThrowJsonException_MetadataInvalidPropertyInArrayMetadata(ReadStack&, const TypeInfo&, Utf8JsonReader&)
static ThrowJsonException_MetadataInvalidPropertyWithLeadingDollarSign(ReadOnlySpan<uint8_t>, ReadStack&, Utf8JsonReader&)
static ThrowJsonException_MetadataPreservedArrayValuesNotFound(ReadStack&, const TypeInfo&)
static ThrowJsonException_MetadataStandaloneValuesProperty(ReadStack&, ReadOnlySpan<uint8_t>)
static ThrowJsonException_MetadataUnexpectedProperty(ReadOnlySpan<uint8_t>, ReadStack&)
static ThrowJsonException_MetadataValuesInvalidToken(JsonTokenType)
static ThrowJsonException_MetadataValueWasNotString(JsonTokenType)
static ThrowJsonException_MetadataValueWasNotString(JsonValueKind)
static ThrowJsonException_SerializationConverterRead(System::SharedPtr<Serialization::JsonConverterBase>)
static ThrowJsonException_SerializationConverterWrite(System::SharedPtr<Serialization::JsonConverterBase>)
static ThrowJsonException_SerializerCycleDetected(int32_t)
static ThrowJsonException_UnrecognizedTypeDiscriminator(System::SharedPtr<Object>)
static ThrowJsonReaderException(Utf8JsonReader&, ExceptionResource, uint8_t, ReadOnlySpan<uint8_t>)
static ThrowNotSupportedException(ReadStack&, Utf8JsonReader&, Exception)
static ThrowNotSupportedException(WriteStack&, Exception)
static ThrowNotSupportedException_BaseConverterDoesNotSupportMetadata(const TypeInfo&)
static ThrowNotSupportedException_CannotPopulateCollection(const TypeInfo&, Utf8JsonReader&, ReadStack&)
static ThrowNotSupportedException_DerivedConverterDoesNotSupportMetadata(const TypeInfo&)
static ThrowNotSupportedException_DeserializeNoConstructor(System::SharedPtr<Serialization::Metadata::JsonTypeInfoBase>, Utf8JsonReader&, ReadStack&)
static ThrowNotSupportedException_DictionaryKeyTypeNotSupported(const TypeInfo&, System::SharedPtr<Serialization::JsonConverterBase>)
static ThrowNotSupportedException_NoMetadataForType(const TypeInfo&, System::SharedPtr<Serialization::Metadata::IJsonTypeInfoResolver>)
static ThrowNotSupportedException_RuntimeTypeDiamondAmbiguity(const TypeInfo&, const TypeInfo&, const TypeInfo&, const TypeInfo&)
static ThrowNotSupportedException_RuntimeTypeNotSupported(const TypeInfo&, const TypeInfo&)
static ThrowNotSupportedException_SerializationNotSupported(const TypeInfo&)
static ThrowObjectDisposedException_JsonDocument()
static ThrowObjectDisposedException_Utf8JsonWriter()
static ThrowOutOfMemoryException(uint32_t)
static ThrowPropertyNameTooLargeArgumentException(int32_t)
static ThrowUnexpectedMetadataException(ReadOnlySpan<uint8_t>, Utf8JsonReader&, ReadStack&)

Fields

FieldDescription
static ExceptionSourceValueToRethrowAsJsonException

See Also