CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
decoder_fallback_exception.h
1
2#ifndef _aspose_system_text_decoder_fallback_exception_h_
3#define _aspose_system_text_decoder_fallback_exception_h_
4
5#include "system/array.h"
6#include "system/exceptions.h"
7
8namespace System { namespace Text {
9
14{
15 friend class System::ExceptionWrapperHelper;
16 template <typename T> friend class System::ExceptionWrapper;
17
18 typedef System::Details_ArgumentException BaseType;
19
20public:
26 ASPOSECPP_SHARED_API int get_Index();
27
28protected:
30 ASPOSECPP_SHARED_API Details_DecoderFallbackException();
31 MEMBER_FUNCTION_MAKE_OBJECT(Details_DecoderFallbackException, CODEPORTING_ARGS(), CODEPORTING_ARGS());
32
35 ASPOSECPP_SHARED_API Details_DecoderFallbackException(const System::String &message);
36 MEMBER_FUNCTION_MAKE_OBJECT(Details_DecoderFallbackException, CODEPORTING_ARGS(const System::String &message), CODEPORTING_ARGS(message));
37
42 ASPOSECPP_SHARED_API Details_DecoderFallbackException(const System::String &message, const ArrayPtr<uint8_t>& bytesUnknown, int index);
43 MEMBER_FUNCTION_MAKE_OBJECT(Details_DecoderFallbackException, CODEPORTING_ARGS(const System::String &message, const ArrayPtr<uint8_t>& bytesUnknown, int index), CODEPORTING_ARGS(message, bytesUnknown, index));
44
48 ASPOSECPP_SHARED_API Details_DecoderFallbackException(const System::String &message, const System::Exception& innerException);
49 MEMBER_FUNCTION_MAKE_OBJECT(Details_DecoderFallbackException, CODEPORTING_ARGS(const System::String &message, const System::Exception& innerException), CODEPORTING_ARGS(message, innerException));
50
53 [[noreturn]] ASPOSECPP_SHARED_API void DoThrow(const System::ExceptionPtr& self) const override;
54
58 int m_index = 0;
59};
60
62}}
63
64#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 DecoderExceptionFallback when decoding fails. Never create instances of this clas...
Definition: decoder_fallback_exception.h:14
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
Details_DecoderFallbackException()
Default constructor.
Details_DecoderFallbackException(const System::String &message, const ArrayPtr< uint8_t > &bytesUnknown, int index)
Constructor.
System::ArrayPtr< uint8_t > get_BytesUnknown()
Gets byte array that triggered error.
Details_DecoderFallbackException(const System::String &message, const System::Exception &innerException)
Constructor.
System::ArrayPtr< uint8_t > m_bytesUnknown
Array of bytes that triggered decoder error.
Definition: decoder_fallback_exception.h:56
int get_Index()
Gets position of byte that triggered error in input array.
Details_DecoderFallbackException(const System::String &message)
Constructor.
@ Text
Defines color adjustment information for text.
Definition: db_command.h:9