Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
System.Text.Json.ThrowHelper Class Reference

Static Public Member Functions

static void ThrowOutOfMemoryException_BufferMaximumSizeExceeded (uint capacity)
 
static ArgumentOutOfRangeException GetArgumentOutOfRangeException_MaxDepthMustBePositive (string parameterName)
 
static ArgumentOutOfRangeException GetArgumentOutOfRangeException_CommentEnumMustBeInRange (string parameterName)
 
static void ThrowArgumentException (string message)
 
static void ThrowArgumentException_PropertyNameTooLarge (int tokenLength)
 
static void ThrowArgumentException_ValueTooLarge (int tokenLength)
 
static void ThrowArgumentException_ValueNotSupported ()
 
static void ThrowInvalidOperationException_NeedLargerSpan ()
 
static void ThrowArgumentException (ReadOnlySpan< byte > propertyName, ReadOnlySpan< byte > value)
 
static void ThrowArgumentException (ReadOnlySpan< byte > propertyName, ReadOnlySpan< char > value)
 
static void ThrowArgumentException (ReadOnlySpan< char > propertyName, ReadOnlySpan< byte > value)
 
static void ThrowArgumentException (ReadOnlySpan< char > propertyName, ReadOnlySpan< char > value)
 
static void ThrowInvalidOperationOrArgumentException (ReadOnlySpan< byte > propertyName, int currentDepth)
 
static void ThrowInvalidOperationException (int currentDepth)
 
static void ThrowInvalidOperationException (string message)
 
static void ThrowInvalidOperationOrArgumentException (ReadOnlySpan< char > propertyName, int currentDepth)
 
static InvalidOperationException GetInvalidOperationException_ExpectedArray (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedObject (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedNumber (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedBoolean (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedString (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedStringComparison (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedComment (JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException_CannotSkipOnPartial ()
 
static void ThrowJsonReaderException (ref Utf8JsonReader json, ExceptionResource resource, byte nextByte=0, ReadOnlySpan< byte > bytes=default(ReadOnlySpan< byte >))
 
static JsonException GetJsonReaderException (ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, ReadOnlySpan< byte > bytes)
 
static void ThrowInvalidOperationException (ExceptionResource resource, int currentDepth, byte token, JsonTokenType tokenType)
 
static void ThrowArgumentException_InvalidCommentValue ()
 
static void ThrowArgumentException_InvalidUTF8 (ReadOnlySpan< byte > value)
 
static void ThrowArgumentException_InvalidUTF16 (int charAsInt)
 
static void ThrowInvalidOperationException_ReadInvalidUTF16 (int charAsInt)
 
static void ThrowInvalidOperationException_ReadInvalidUTF16 ()
 
static InvalidOperationException GetInvalidOperationException_ReadInvalidUTF8 (DecoderFallbackException innerException)
 
static ArgumentException GetArgumentException_ReadInvalidUTF16 (EncoderFallbackException innerException)
 
static InvalidOperationException GetInvalidOperationException (string message, Exception innerException)
 
static InvalidOperationException GetInvalidOperationException (ExceptionResource resource, int currentDepth, byte token, JsonTokenType tokenType)
 
static void ThrowOutOfMemoryException (uint capacity)
 
static FormatException GetFormatException ()
 
static FormatException GetFormatException (NumericType numericType)
 
static FormatException GetFormatException (DataType dateType)
 
static InvalidOperationException GetInvalidOperationException_ExpectedChar (JsonTokenType tokenType)
 
static void ThrowArgumentException_NodeValueNotAllowed (string paramName)
 
static void ThrowArgumentException_NodeArrayTooSmall (string paramName)
 
static void ThrowArgumentOutOfRangeException_NodeArrayIndexNegative (string paramName)
 
static void ThrowArgumentException_DuplicateKey (string propertyName)
 
static void ThrowInvalidOperationException_NodeAlreadyHasParent ()
 
static void ThrowInvalidOperationException_NodeCycleDetected ()
 
static void ThrowNotSupportedException_NodeCollectionIsReadOnly ()
 
static NotSupportedException NotSupportedException_NodeCollectionIsReadOnly ()
 
static void ThrowArgumentException_DeserializeWrongType (Type type, object value)
 
static void ThrowNotSupportedException_SerializationNotSupported (Type propertyType)
 
static void ThrowNotSupportedException_TypeRequiresAsyncSerialization (Type propertyType)
 
static void ThrowNotSupportedException_ConstructorMaxOf64Parameters (Type type)
 
static void ThrowNotSupportedException_DictionaryKeyTypeNotSupported (Type keyType, JsonConverter converter)
 
static void ThrowJsonException_DeserializeUnableToConvertValue (Type propertyType)
 
static void ThrowInvalidCastException_DeserializeUnableToAssignValue (Type typeOfValue, Type declaredType)
 
static void ThrowInvalidOperationException_DeserializeUnableToAssignNull (Type declaredType)
 
static void ThrowJsonException_SerializationConverterRead (JsonConverter converter)
 
static void ThrowJsonException_SerializationConverterWrite (JsonConverter converter)
 
static void ThrowJsonException_SerializerCycleDetected (int maxDepth)
 
static void ThrowJsonException (string message=null)
 
static void ThrowInvalidOperationException_CannotSerializeInvalidType (Type type, Type parentClassType, MemberInfo memberInfo)
 
static void ThrowInvalidOperationException_SerializationConverterNotCompatible (Type converterType, Type type)
 
static void ThrowInvalidOperationException_SerializationConverterOnAttributeInvalid (Type classType, MemberInfo memberInfo)
 
static void ThrowInvalidOperationException_SerializationConverterOnAttributeNotCompatible (Type classTypeAttributeIsOn, MemberInfo memberInfo, Type typeToConvert)
 
static void ThrowInvalidOperationException_SerializerOptionsImmutable (JsonSerializerContext context)
 
static void ThrowInvalidOperationException_SerializerPropertyNameConflict (Type type, JsonPropertyInfo jsonPropertyInfo)
 
static void ThrowInvalidOperationException_SerializerPropertyNameNull (Type parentType, JsonPropertyInfo jsonPropertyInfo)
 
static void ThrowInvalidOperationException_NamingPolicyReturnNull (JsonNamingPolicy namingPolicy)
 
static void ThrowInvalidOperationException_SerializerConverterFactoryReturnsNull (Type converterType)
 
static void ThrowInvalidOperationException_SerializerConverterFactoryReturnsJsonConverterFactorty (Type converterType)
 
static void ThrowInvalidOperationException_MultiplePropertiesBindToConstructorParameters (Type parentType, string parameterName, string firstMatchName, string secondMatchName)
 
static void ThrowInvalidOperationException_ConstructorParameterIncompleteBinding (Type parentType)
 
static void ThrowInvalidOperationException_ExtensionDataCannotBindToCtorParam (JsonPropertyInfo jsonPropertyInfo)
 
static void ThrowInvalidOperationException_JsonIncludeOnNonPublicInvalid (string memberName, Type declaringType)
 
static void ThrowInvalidOperationException_IgnoreConditionOnValueTypeInvalid (string clrPropertyName, Type propertyDeclaringType)
 
static void ThrowInvalidOperationException_NumberHandlingOnPropertyInvalid (JsonPropertyInfo jsonPropertyInfo)
 
static void ThrowInvalidOperationException_ConverterCanConvertMultipleTypes (Type runtimePropertyType, JsonConverter jsonConverter)
 
static void ThrowNotSupportedException_ObjectWithParameterizedCtorRefMetadataNotHonored (ReadOnlySpan< byte > propertyName, ref Utf8JsonReader reader, ref ReadStack state)
 
static void ReThrowWithPath (ref ReadStack state, JsonReaderException ex)
 
static void ReThrowWithPath (ref ReadStack state, in Utf8JsonReader reader, Exception ex)
 
static void AddJsonExceptionInformation (ref ReadStack state, in Utf8JsonReader reader, JsonException ex)
 
static void ReThrowWithPath (ref WriteStack state, Exception ex)
 
static void AddJsonExceptionInformation (ref WriteStack state, JsonException ex)
 
static void ThrowInvalidOperationException_SerializationDuplicateAttribute (Type attribute, Type classType, MemberInfo memberInfo)
 
static void ThrowInvalidOperationException_SerializationDuplicateTypeAttribute (Type classType, Type attribute)
 
static void ThrowInvalidOperationException_SerializationDuplicateTypeAttribute< TAttribute > (Type classType)
 
static void ThrowInvalidOperationException_SerializationDataExtensionPropertyInvalid (Type type, JsonPropertyInfo jsonPropertyInfo)
 
static void ThrowNotSupportedException (ref ReadStack state, in Utf8JsonReader reader, NotSupportedException ex)
 
static void ThrowNotSupportedException (ref WriteStack state, NotSupportedException ex)
 
static void ThrowNotSupportedException_DeserializeNoConstructor (Type type, ref Utf8JsonReader reader, ref ReadStack state)
 
static void ThrowNotSupportedException_CannotPopulateCollection (Type type, ref Utf8JsonReader reader, ref ReadStack state)
 
static void ThrowJsonException_MetadataValuesInvalidToken (JsonTokenType tokenType)
 
static void ThrowJsonException_MetadataReferenceNotFound (string id)
 
static void ThrowJsonException_MetadataValueWasNotString (JsonTokenType tokenType)
 
static void ThrowJsonException_MetadataValueWasNotString (JsonValueKind valueKind)
 
static void ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties (ReadOnlySpan< byte > propertyName, ref ReadStack state)
 
static void ThrowJsonException_MetadataReferenceObjectCannotContainOtherProperties ()
 
static void ThrowJsonException_MetadataIdIsNotFirstProperty (ReadOnlySpan< byte > propertyName, ref ReadStack state)
 
static void ThrowJsonException_MetadataMissingIdBeforeValues (ref ReadStack state, ReadOnlySpan< byte > propertyName)
 
static void ThrowJsonException_MetadataInvalidPropertyWithLeadingDollarSign (ReadOnlySpan< byte > propertyName, ref ReadStack state, in Utf8JsonReader reader)
 
static void ThrowJsonException_MetadataDuplicateIdFound (string id)
 
static void ThrowJsonException_MetadataInvalidReferenceToValueType (Type propertyType)
 
static void ThrowJsonException_MetadataPreservedArrayInvalidProperty (ref ReadStack state, Type propertyType, in Utf8JsonReader reader)
 
static void ThrowJsonException_MetadataPreservedArrayValuesNotFound (ref ReadStack state, Type propertyType)
 
static void ThrowJsonException_MetadataCannotParsePreservedObjectIntoImmutable (Type propertyType)
 
static void ThrowInvalidOperationException_MetadataReferenceOfTypeCannotBeAssignedToType (string referenceId, Type currentType, Type typeToConvert)
 
static void ThrowInvalidOperationException_JsonSerializerOptionsAlreadyBoundToContext ()
 
static void ThrowNotSupportedException_BuiltInConvertersNotRooted (Type type)
 
static void ThrowNotSupportedException_NoMetadataForType (Type type)
 
static void ThrowInvalidOperationException_NoMetadataForType (Type type)
 
static void ThrowInvalidOperationException_NoMetadataForTypeProperties (JsonSerializerContext context, Type type)
 
static void ThrowInvalidOperationException_NoMetadataForTypeCtorParams (JsonSerializerContext context, Type type)
 
static void ThrowMissingMemberException_MissingFSharpCoreMember (string missingFsharpCoreMember)
 

Static Package Functions

static InvalidOperationException GetJsonElementWrongTypeException (JsonTokenType expectedType, JsonTokenType actualType)
 
static InvalidOperationException GetJsonElementWrongTypeException (string expectedTypeName, JsonTokenType actualType)
 
static InvalidOperationException GetJsonElementWrongTypeException (JsonValueKind expectedType, JsonValueKind actualType)
 
static InvalidOperationException GetJsonElementWrongTypeException (string expectedTypeName, JsonValueKind actualType)
 
static string GetPrintableString (byte value)
 
static void ThrowUnexpectedMetadataException (ReadOnlySpan< byte > propertyName, ref Utf8JsonReader reader, ref ReadStack state)
 

Static Private Member Functions

static ArgumentOutOfRangeException GetArgumentOutOfRangeException (string parameterName, string message)
 
static ArgumentException GetArgumentException (string message)
 
static InvalidOperationException GetInvalidOperationException (string message)
 
static InvalidOperationException GetInvalidOperationException (string message, JsonTokenType tokenType)
 
static InvalidOperationException GetInvalidOperationException (JsonTokenType tokenType)
 
static bool IsPrintable (byte value)
 
static string GetResourceString (ref Utf8JsonReader json, ExceptionResource resource, byte nextByte, string characters)
 
static string GetResourceString (ExceptionResource resource, int currentDepth, byte token, JsonTokenType tokenType)
 

Detailed Description

Definition at line 10 of file ThrowHelper.cs.


The documentation for this class was generated from the following file: