CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
file_not_found_exception.h
1
2
3#pragma once
4
5#include "system/details_exception_with_filename.h"
6
7namespace System { namespace IO {
11class ASPOSECPP_SHARED_CLASS Details_FileNotFoundException : public Details_ExceptionWithFilename<Details_IOException>
12{
13 friend class System::ExceptionWrapperHelper;
14 template <typename T> friend class System::ExceptionWrapper;
16 RTTI_INFO_NAMED(System::IO::Details_FileNotFoundException, "System::IO::FileNotFoundException",
17 ::System::BaseTypesInfo<System::Object>);
18
19protected:
22 ASPOSECPP_SHARED_API Details_FileNotFoundException();
23 MEMBER_FUNCTION_MAKE_OBJECT(Details_FileNotFoundException, CODEPORTING_ARGS(), CODEPORTING_ARGS());
28 ASPOSECPP_SHARED_API Details_FileNotFoundException(const String& message);
29 MEMBER_FUNCTION_MAKE_OBJECT(Details_FileNotFoundException, CODEPORTING_ARGS(const String& message), CODEPORTING_ARGS(message));
37 ASPOSECPP_SHARED_API Details_FileNotFoundException(const String& message, const System::Exception& innerException);
38 MEMBER_FUNCTION_MAKE_OBJECT(Details_FileNotFoundException, CODEPORTING_ARGS(const String& message, const System::Exception& innerException), CODEPORTING_ARGS(message, innerException));
45 ASPOSECPP_SHARED_API Details_FileNotFoundException(const String& message, const String& fileName);
46 MEMBER_FUNCTION_MAKE_OBJECT(Details_FileNotFoundException, CODEPORTING_ARGS(const String& message, const String& fileName), CODEPORTING_ARGS(message, fileName));
53 ASPOSECPP_SHARED_API Details_FileNotFoundException(const String& message, const String& fileName,
54 const System::Exception& innerException);
55 MEMBER_FUNCTION_MAKE_OBJECT(
57 CODEPORTING_ARGS(const String& message, const String& fileName, const System::Exception& innerException),
58 CODEPORTING_ARGS(message, fileName, innerException)
59 );
61 [[noreturn]] void DoThrow(const System::ExceptionPtr& self) const override;
62
63private:
65 static const String s_default_message;
69 static const String& DefaultMessageIfNull(const String& message);
70};
71
75}} // namespace System::IO
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
The exception that is thrown when an attempt to access a file that does not exist on disk fails....
Definition: file_not_found_exception.h:12
Details_FileNotFoundException(const String &message, const String &fileName, const System::Exception &innerException)
Initializes a new instance of the FileNotFoundException class with a specified error message,...
Details_FileNotFoundException(const String &message, const System::Exception &innerException)
Initializes a new instance of the FileNotFoundException class with a specified error message and a re...
Details_FileNotFoundException(const String &message)
Initializes a new instance of the FileNotFoundException class with a specified error message.
Details_FileNotFoundException(const String &message, const String &fileName)
Initializes a new instance of the FileNotFoundException class with a specified error message,...
void DoThrow(const System::ExceptionPtr &self) const override
Details_FileNotFoundException()
Initializes a new instance of the FileNotFoundException class with its message string set to a system...
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