CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
System::Xml::Details_XmlException Class Reference

Returns detailed information about the last exception. More...

#include <xml_exception.h>

Inherits Details_SystemException.

Public Types

using Ptr = SharedPtr< XmlException >
 An alias for shared pointer to an instance of this class. More...
 

Public Member Functions

int32_t get_LineNumber ()
 Returns the line number indicating where the error occurred. Line numbers start at 1. More...
 
int32_t get_LinePosition ()
 Returns the line position indicating where the error occurred. Line position starts at 1. More...
 
String get_SourceUri ()
 Returns the location of the XML file. More...
 
String get_Message () const override
 Returns a message describing the current exception. More...
 

Protected Member Functions

void DoThrow (const System::ExceptionPtr &self) const override
 Throws exception instance wrapped by exception wrapper. More...
 
 Details_XmlException ()
 Initializes a new instance of the XmlException class. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlException, CODEPORTING_ARGS())
 
 Details_XmlException (const String &message)
 Initializes a new instance of the XmlException class with a specified error message. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlException, CODEPORTING_ARGS(String message))
 
 Details_XmlException (const String &message, Exception innerException)
 Initializes a new instance of the XmlException class. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlException, CODEPORTING_ARGS(String message, Exception innerException))
 
 Details_XmlException (const String &message, Exception innerException, int32_t lineNumber, int32_t linePosition)
 Initializes a new instance of the XmlException class with the specified message, inner exception, line number, and line position. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlException, CODEPORTING_ARGS(String message, Exception innerException, int32_t lineNumber, int32_t linePosition))
 

Detailed Description

Returns detailed information about the last exception.

Member Typedef Documentation

◆ Ptr

An alias for shared pointer to an instance of this class.

Constructor & Destructor Documentation

◆ Details_XmlException() [1/4]

System::Xml::Details_XmlException::Details_XmlException ( )
protected

Initializes a new instance of the XmlException class.

◆ Details_XmlException() [2/4]

System::Xml::Details_XmlException::Details_XmlException ( const String message)
protected

Initializes a new instance of the XmlException class with a specified error message.

Parameters
messageThe error description.

◆ Details_XmlException() [3/4]

System::Xml::Details_XmlException::Details_XmlException ( const String message,
Exception  innerException 
)
protected

Initializes a new instance of the XmlException class.

Parameters
messageThe description of the error condition.
innerExceptionThe Exception that threw the XmlException, if any. This value can be nullptr.

◆ Details_XmlException() [4/4]

System::Xml::Details_XmlException::Details_XmlException ( const String message,
Exception  innerException,
int32_t  lineNumber,
int32_t  linePosition 
)
protected

Initializes a new instance of the XmlException class with the specified message, inner exception, line number, and line position.

Parameters
messageThe error description.
innerExceptionThe exception that is the cause of the current exception. This value can be nullptr.
lineNumberThe line number indicating where the error occurred.
linePositionThe line position indicating where the error occurred.

Member Function Documentation

◆ DoThrow()

void System::Xml::Details_XmlException::DoThrow ( const System::ExceptionPtr self) const
overrideprotected

Throws exception instance wrapped by exception wrapper.

Parameters
selfException instance to be thrown.

◆ get_LineNumber()

int32_t System::Xml::Details_XmlException::get_LineNumber ( )

Returns the line number indicating where the error occurred. Line numbers start at 1.

Returns
The line number indicating where the error occurred.

◆ get_LinePosition()

int32_t System::Xml::Details_XmlException::get_LinePosition ( )

Returns the line position indicating where the error occurred. Line position starts at 1.

Returns
The line position indicating where the error occurred.

◆ get_Message()

String System::Xml::Details_XmlException::get_Message ( ) const
override

Returns a message describing the current exception.

Returns
The error message that explains the reason for the exception.

◆ get_SourceUri()

String System::Xml::Details_XmlException::get_SourceUri ( )

Returns the location of the XML file.

Returns
The source URI for the XML data. If there is no source URI, this method returns nullptr.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/4]

System::Xml::Details_XmlException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlException  ,
CODEPORTING_ARGS()   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/4]

System::Xml::Details_XmlException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlException  ,
CODEPORTING_ARGS(String message)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/4]

System::Xml::Details_XmlException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlException  ,
CODEPORTING_ARGS(String message, Exception innerException)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/4]

System::Xml::Details_XmlException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlException  ,
CODEPORTING_ARGS(String message, Exception innerException, int32_t lineNumber, int32_t linePosition)   
)
protected