5#include "system/details_exception_with_error_code.h"
7namespace System {
namespace Runtime {
namespace InteropServices {
14 friend class System::ExceptionWrapperHelper;
18 ::System::BaseTypesInfo<System::Object>);
40 MEMBER_FUNCTION_MAKE_OBJECT(
Details_ExternalException, CODEPORTING_ARGS(
const String& message, int32_t errorCode), CODEPORTING_ARGS(message, errorCode));
46 static const String s_default_message;
50 static const String& DefaultMessageIfNull(
const String& message);
The template class for an exception with an error code.
Definition: details_exception_with_error_code.h:13
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
The base exception type for all COM interop exceptions and structured exception handling (SEH) except...
Definition: external_exception.h:13
Details_ExternalException(const String &message, int32_t errorCode)
Initializes a new instance of the ExternalException class with a specified error message and the HRES...
Details_ExternalException(const String &message)
Initializes a new instance of the ExternalException class with a specified error message.
Details_ExternalException()
Initializes a new instance of the ExternalException class with default properties.
void DoThrow(const System::ExceptionPtr &self) const override
Details_ExternalException(const String &message, const System::Exception &innerException)
Initializes a new instance of the ExternalException class with a specified error message and a refere...
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