CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
encoder_fallback_exception.h
1
2#ifndef _aspose_system_text_encoder_fallback_exception_h_
3#define _aspose_system_text_encoder_fallback_exception_h_
4
5#include "system/exceptions.h"
6
7namespace System { namespace Text {
8
13{
14 friend class System::ExceptionWrapperHelper;
15 template <typename T> friend class System::ExceptionWrapper;
16
17 typedef System::Details_ArgumentException BaseType;
18
19public:
22 char_t get_CharUnknown() { return m_charUnknown; };
25 char_t get_CharUnknownHigh() { return m_charUnknownHigh; };
28 char_t get_CharUnknownLow() { return m_charUnknownLow; };
31 int get_Index() { return m_index; };
32
33protected:
35 ASPOSECPP_SHARED_API Details_EncoderFallbackException();
36 MEMBER_FUNCTION_MAKE_OBJECT(Details_EncoderFallbackException, CODEPORTING_ARGS(), CODEPORTING_ARGS());
37
40 ASPOSECPP_SHARED_API Details_EncoderFallbackException(const System::String &message);
41 MEMBER_FUNCTION_MAKE_OBJECT(Details_EncoderFallbackException, CODEPORTING_ARGS(const System::String &message), CODEPORTING_ARGS(message));
42
46 ASPOSECPP_SHARED_API Details_EncoderFallbackException(const System::String &message, const System::Exception& innerException);
47 MEMBER_FUNCTION_MAKE_OBJECT(Details_EncoderFallbackException, CODEPORTING_ARGS(const System::String &message, const System::Exception& innerException), CODEPORTING_ARGS(message, innerException));
48
53 ASPOSECPP_SHARED_API Details_EncoderFallbackException(const System::String &message, char_t charUnknown, int index);
54 MEMBER_FUNCTION_MAKE_OBJECT(Details_EncoderFallbackException, CODEPORTING_ARGS(const System::String &message, char_t charUnknown, int index), CODEPORTING_ARGS(message, charUnknown, index));
55
61 ASPOSECPP_SHARED_API Details_EncoderFallbackException(const System::String &message, char_t charUnknownHigh, char_t charUnknownLow, int index);
62 MEMBER_FUNCTION_MAKE_OBJECT(Details_EncoderFallbackException, CODEPORTING_ARGS(const System::String &message, char_t charUnknownHigh, char_t charUnknownLow, int index), CODEPORTING_ARGS(message, charUnknownHigh, charUnknownLow, index));
63
66 [[noreturn]] ASPOSECPP_SHARED_API void DoThrow(const System::ExceptionPtr& self) const override;
67
69 char_t m_charUnknown = char_t();
71 char_t m_charUnknownHigh = char_t();
73 char_t m_charUnknownLow = char_t();
75 int m_index = 0;
76};
77
79}}
80
81#endif
ArgumentException is thrown when an argument passed to a method being invoked is invalid....
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
Exception thrown by EncoderExceptionFallback when encoding fails. Never create instances of this clas...
Definition: encoder_fallback_exception.h:13
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
Details_EncoderFallbackException(const System::String &message, char_t charUnknownHigh, char_t charUnknownLow, int index)
Constructor.
int get_Index()
Gets position of character that triggered error in input array.
Definition: encoder_fallback_exception.h:31
char_t get_CharUnknownLow()
Gets low character of pair that triggered error.
Definition: encoder_fallback_exception.h:28
char_t get_CharUnknown()
Gets character that triggered error.
Definition: encoder_fallback_exception.h:22
char_t get_CharUnknownHigh()
Gets high character of pair that triggered error.
Definition: encoder_fallback_exception.h:25
Details_EncoderFallbackException(const System::String &message, const System::Exception &innerException)
Constructor.
Details_EncoderFallbackException()
Default constructor.
Details_EncoderFallbackException(const System::String &message)
Constructor.
Details_EncoderFallbackException(const System::String &message, char_t charUnknown, int index)
Constructor.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9