System::Xml::Details_XmlException Class Reference

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

Inherits System::Details_SystemException.

Public Types

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

Public Member Functions

ASPOSECPP_SHARED_API int32_t get_LineNumber ()
 
ASPOSECPP_SHARED_API int32_t get_LinePosition ()
 
ASPOSECPP_SHARED_API String get_SourceUri ()
 
ASPOSECPP_SHARED_API String get_Message () const override
 

Detailed Description

Returns detailed information about the last exception.

Member Typedef Documentation

◆ Ptr

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

Member Function Documentation

◆ get_LineNumber()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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()

ASPOSECPP_SHARED_API 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.