CodePorting.Translator.Cs2Cpp.Framework
System::Reflection::Details_TargetInvocationException Class Reference

TargetInvocationException is thrown by methods invoked through reflection. Never create instances of this class manually. Use the TargetInvocationException class instead. Never wrap the TargetInvocationException class instances into System::SmartPtr. More...

#include <target_invocation_exception.h>

Inherits Details_ApplicationException.

Protected Types

using BaseType = System::Details_ApplicationException
 

Protected Member Functions

 Details_TargetInvocationException ()
 Initializes a new instance of the Details_TargetInvocationException class. More...
 
 Details_TargetInvocationException (const String &message)
 Initializes a new instance of the Details_TargetInvocationException class with a specified error message. More...
 
 Details_TargetInvocationException (const String &message, const System::ExceptionWrapper< System::Details_Exception > &innerException)
 Initializes a new instance of the Details_TargetInvocationException class with error message and an inner exception that is the cause of this exception. More...
 
 Details_TargetInvocationException (const System::ExceptionWrapper< System::Details_Exception > &innerException)
 Initializes a new instance of the Details_TargetInvocationException class with default error message and an inner exception that is the cause of this exception. More...
 
 Details_TargetInvocationException (const System::SharedPtr< System::Runtime::Serialization::SerializationInfo > &info, System::Runtime::Serialization::StreamingContext context)
 Initializes a new instance of the Details_TargetInvocationException class from the serialization information captured at the streaming context. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 

Detailed Description

TargetInvocationException is thrown by methods invoked through reflection. Never create instances of this class manually. Use the TargetInvocationException class instead. Never wrap the TargetInvocationException class instances into System::SmartPtr.

Member Typedef Documentation

◆ BaseType

Constructor & Destructor Documentation

◆ Details_TargetInvocationException() [1/5]

System::Reflection::Details_TargetInvocationException::Details_TargetInvocationException ( )
protected

Initializes a new instance of the Details_TargetInvocationException class.

◆ Details_TargetInvocationException() [2/5]

System::Reflection::Details_TargetInvocationException::Details_TargetInvocationException ( const String message)
protected

Initializes a new instance of the Details_TargetInvocationException class with a specified error message.

Parameters
messageThe message that describes the error.

◆ Details_TargetInvocationException() [3/5]

System::Reflection::Details_TargetInvocationException::Details_TargetInvocationException ( const String message,
const System::ExceptionWrapper< System::Details_Exception > &  innerException 
)
protected

Initializes a new instance of the Details_TargetInvocationException class with error message and an inner exception that is the cause of this exception.

Parameters
messageThe message describing the exception.
innerExceptionThe exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

◆ Details_TargetInvocationException() [4/5]

System::Reflection::Details_TargetInvocationException::Details_TargetInvocationException ( const System::ExceptionWrapper< System::Details_Exception > &  innerException)
protected

Initializes a new instance of the Details_TargetInvocationException class with default error message and an inner exception that is the cause of this exception.

Parameters
innerExceptionThe exception that is the cause of the current exception. If the inner parameter is not null, the current exception is raised in a catch block that handles the inner exception.

◆ Details_TargetInvocationException() [5/5]

System::Reflection::Details_TargetInvocationException::Details_TargetInvocationException ( const System::SharedPtr< System::Runtime::Serialization::SerializationInfo > &  info,
System::Runtime::Serialization::StreamingContext  context 
)
protected

Initializes a new instance of the Details_TargetInvocationException class from the serialization information captured at the streaming context.

Parameters
infoThe serialization information.
contextThe streaming context.

Member Function Documentation

◆ DoThrow()

void System::Reflection::Details_TargetInvocationException::DoThrow ( const System::ExceptionPtr self) const
overrideprotected
See also
System::Exception::DoThrow