System.Reflection.TargetInvocationException
E704384
System.Reflection.TargetInvocationException is a .NET exception type that wraps and reports errors thrown by methods invoked dynamically via reflection.
Statements (46)
| Predicate | Object |
|---|---|
| instanceOf |
.NET exception type
ⓘ
System.Exception subclass ⓘ |
| accessibility | public ⓘ |
| assembly |
System.Runtime
NERFINISHED
ⓘ
mscorlib NERFINISHED ⓘ |
| canBeInherited | true ⓘ |
| category | reflection-related exception ⓘ |
| CLSCompliant | true ⓘ |
| commonUsage | to inspect InnerException for actual error ⓘ |
| definedInLanguage |
C#
NERFINISHED
ⓘ
F# NERFINISHED ⓘ VB.NET NERFINISHED ⓘ |
| documentation | https://learn.microsoft.com/dotnet/api/system.reflection.targetinvocationexception ⓘ |
| errorCategory | runtime error ⓘ |
| exceptionHierarchyLevel | second-level under System.Exception ⓘ |
| fullName | System.Reflection.TargetInvocationException NERFINISHED ⓘ |
| hasConstructor |
TargetInvocationException()
NERFINISHED
ⓘ
TargetInvocationException(SerializationInfo info, StreamingContext context) ⓘ TargetInvocationException(string message) NERFINISHED ⓘ TargetInvocationException(string message, Exception innerException) ⓘ |
| hasProperty |
HelpLink
ⓘ
InnerException ⓘ Message ⓘ Source ⓘ StackTrace ⓘ |
| implements | ISerializable ⓘ |
| inheritsFrom | System.Exception NERFINISHED ⓘ |
| introducedIn | .NET Framework 1.0 NERFINISHED ⓘ |
| isSealed | false ⓘ |
| isSerializable | true ⓘ |
| memberType | class ⓘ |
| namespace | System.Reflection NERFINISHED ⓘ |
| platform |
.NET 5+
ⓘ
.NET Core NERFINISHED ⓘ .NET Framework NERFINISHED ⓘ |
| purpose | wraps exceptions thrown by methods invoked via reflection ⓘ |
| requires | System.Reflection namespace import to reference by name ⓘ |
| thrownWhen | invoked member throws an exception during reflection call ⓘ |
| typicalHandling | catch TargetInvocationException and rethrow InnerException ⓘ |
| usedBy |
Activator.CreateInstance
ⓘ
ConstructorInfo.Invoke NERFINISHED ⓘ MethodBase.Invoke ⓘ System.Delegate.DynamicInvoke ⓘ System.Reflection.MethodInfo.Invoke NERFINISHED ⓘ |
| wraps |
exception thrown by dynamically invoked constructor
ⓘ
exception thrown by dynamically invoked method ⓘ |
Referenced by (1)
Full triples — surface form annotated when it differs from this entity's canonical label.