CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
bad_image_fromat_exception.h
1
2
3#pragma once
4
5#include "system/details_exception_with_filename.h"
6
7namespace System {
12class ASPOSECPP_SHARED_CLASS Details_BadImageFormatException
13 : public Details_ExceptionWithFilename<Details_SystemException>
14{
15 friend class System::ExceptionWrapperHelper;
16 template <typename T> friend class System::ExceptionWrapper;
18 RTTI_INFO_NAMED(System::Details_BadImageFormatException, "System::BadImageFormatException",
19 ::System::BaseTypesInfo<System::Object>);
20
21protected:
23 ASPOSECPP_SHARED_API Details_BadImageFormatException();
24 MEMBER_FUNCTION_MAKE_OBJECT(Details_BadImageFormatException, CODEPORTING_ARGS(), CODEPORTING_ARGS());
27 ASPOSECPP_SHARED_API Details_BadImageFormatException(const String& message);
28 MEMBER_FUNCTION_MAKE_OBJECT(Details_BadImageFormatException, CODEPORTING_ARGS(const String& message), CODEPORTING_ARGS(message));
34 ASPOSECPP_SHARED_API Details_BadImageFormatException(const String& message, const Exception& innerException);
35 MEMBER_FUNCTION_MAKE_OBJECT(Details_BadImageFormatException, CODEPORTING_ARGS(const String& message, const Exception& innerException), CODEPORTING_ARGS(message, innerException));
39 ASPOSECPP_SHARED_API Details_BadImageFormatException(const String& message, const String& fileName);
40 MEMBER_FUNCTION_MAKE_OBJECT(Details_BadImageFormatException, CODEPORTING_ARGS(const String& message, const String& fileName), CODEPORTING_ARGS(message, fileName));
47 ASPOSECPP_SHARED_API Details_BadImageFormatException(const String& message, const String& fileName,
48 const Exception& innerException);
49 MEMBER_FUNCTION_MAKE_OBJECT(
51 CODEPORTING_ARGS(const String& message, const String& fileName, const Exception& innerException),
52 CODEPORTING_ARGS(message, fileName, innerException)
53 );
55 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
56
57private:
59 static const String s_default_message;
63 static const String& DefaultMessageIfNull(const String& message);
64};
65
70} // namespace System
The exception that is thrown when the file image of a dynamic link library (DLL) or an executable pro...
Definition: bad_image_fromat_exception.h:14
Details_BadImageFormatException(const String &message)
Initializes a new instance of the BadImageFormatException class with a specified error message.
Details_BadImageFormatException()
Initializes a new instance of the BadImageFormatException class.
void DoThrow(const System::ExceptionPtr &self) const override
Details_BadImageFormatException(const String &message, const String &fileName)
Initializes a new instance of the BadImageFormatException class with a specified error message and fi...
Details_BadImageFormatException(const String &message, const String &fileName, const Exception &innerException)
Initializes a new instance of the BadImageFormatException class with a specified error message and a ...
Details_BadImageFormatException(const String &message, const Exception &innerException)
Initializes a new instance of the BadImageFormatException class with a specified error message and a ...
The template class for an exception with a file name.
Definition: details_exception_with_filename.h:14
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
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