ThrowHelper

ThrowHelper class

class ThrowHelper

Methods

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

Fields

FieldDescription
static ExceptionSourceValueToRethrowAsJsonException

See Also