Union
ReflectionError
union struct ReflectionError
Module: System.Runtime.Reflection
Assembly: System.Runtime.dll
Source file: ReflectionError.rvn
Inheritance: Object → ValueType → ReflectionError
Expected rejection of a provisional runtime reflection operation.
Remarks
Constructor and accessor Faults remain terminal; they are not wrapped by this union. Match cases to inspect the failure.
Cases
13 cases
case UnboundMetadata
The descriptor is not backed by the current loaded runtime.
case UnsupportedType
The type is outside the supported construction shapes.
case AccessDenied
The constructor, accessor or declaring type is not publicly accessible, or imported source access information is absent.
case MissingConstructor
No supported public parameterless constructor is available.
case UnsupportedProperty
The property is invalid or outside the supported instance, nonindexed shapes.
case MissingAccessor
The requested getter or setter is absent.
case InvalidReceiver
The receiver is null or incompatible with the declaring type.
case UnsupportedMethod
The method has an unsupported execution shape.
case UnsupportedField
The field has an unsupported execution shape.
case InvalidArguments
The argument array, arity or an argument type is invalid.
case AmbiguousConstructor
More than one public supported constructor matches the supplied arguments.
case InvalidResultType
The constructed type is not assignable to the requested T result view.
case InvalidValue
The value is incompatible with the property or is null for a scalar.
Properties
2 items
HasValue: bool
Indicates whether the union contains an active case.
Value: object?
Gets the boxed case payload.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
No summary available.
Overrides Object.ToString