CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
target_invocation_exception.h
1
2
3#pragma once
4
5#include "system/exceptions.h"
6
7namespace System { namespace Reflection {
8
13{
14 friend class System::ExceptionWrapperHelper;
15 template <typename T>
17 RTTI_INFO_NAMESPACE(Details_TargetInvocationException, System::BaseTypesInfo<System::Details_ApplicationException>)
18protected:
21 ASPOSECPP_SHARED_API Details_TargetInvocationException();
22 MEMBER_FUNCTION_MAKE_OBJECT(Details_TargetInvocationException, CODEPORTING_ARGS(), CODEPORTING_ARGS());
25 ASPOSECPP_SHARED_API Details_TargetInvocationException(const String& message);
26 MEMBER_FUNCTION_MAKE_OBJECT(Details_TargetInvocationException, CODEPORTING_ARGS(const String& message), CODEPORTING_ARGS(message));
33 const String& message,
35 MEMBER_FUNCTION_MAKE_OBJECT(
37 CODEPORTING_ARGS(const String& message, const System::ExceptionWrapper<System::Details_Exception>& innerException),
38 CODEPORTING_ARGS(message, innerException)
39 );
45 MEMBER_FUNCTION_MAKE_OBJECT(
47 CODEPORTING_ARGS(const System::ExceptionWrapper<System::Details_Exception>& innerException),
48 CODEPORTING_ARGS(innerException)
49 );
57 MEMBER_FUNCTION_MAKE_OBJECT(
60 CODEPORTING_ARGS(info, context));
62 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
63
64private:
66 static const String s_default_message;
70 static const String& DefaultMessageIfNull(const String& message);
71};
72
76}} // namespace System::Reflection
A base class for classes that represent application (rather than system) exceptions....
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
TargetInvocationException is thrown by methods invoked through reflection. Never create instances of ...
Definition: target_invocation_exception.h:13
Details_TargetInvocationException()
Initializes a new instance of the Details_TargetInvocationException class.
Details_TargetInvocationException(const String &message)
Initializes a new instance of the Details_TargetInvocationException class with a specified error mess...
void DoThrow(const System::ExceptionPtr &self) const override
System::Details_ApplicationException BaseType
Definition: target_invocation_exception.h:19
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 i...
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 info...
Details_TargetInvocationException(const System::ExceptionWrapper< System::Details_Exception > &innerException)
Initializes a new instance of the Details_TargetInvocationException class with default error message ...
Dummy class to make StreamingContext-using translated classes compile. Do not manage instances of thi...
Definition: streaming_context.h:12
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9