CodePorting.Translator.Cs2Cpp.Framework
System::Xml::Schema::Details_XmlSchemaException Class Reference

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

#include <xml_schema_exception.h>

Inherits Details_SystemException.

Inherited by System::Xml::Schema::Details_XmlSchemaInferenceException, and System::Xml::Schema::Details_XmlSchemaValidationException.

Public Types

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

Public Member Functions

String get_SourceUri ()
 Returns the Uniform Resource Identifier (URI) location of the schema that caused the exception. More...
 
int32_t get_LineNumber ()
 Returns the line number indicating where the error occurred. More...
 
int32_t get_LinePosition ()
 Returns the line position indicating where the error occurred. More...
 
SharedPtr< XmlSchemaObjectget_SourceSchemaObject ()
 The XmlSchemaObject that produced the XmlSchemaException. More...
 
String get_Message () const override
 Returns the description of the error condition of this exception. More...
 

Protected Member Functions

void DoThrow (const System::ExceptionPtr &self) const override
 Throws exception instance wrapped by exception wrapper. More...
 
 Details_XmlSchemaException ()
 Initializes a new instance of the XmlSchemaException class. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlSchemaException, CODEPORTING_ARGS())
 
 Details_XmlSchemaException (const String &message)
 Initializes a new instance of the XmlSchemaException class with the exception message specified. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlSchemaException, CODEPORTING_ARGS(String message))
 
 Details_XmlSchemaException (const String &message, Exception innerException)
 Initializes a new instance of the XmlSchemaException class with the exception message and original Exception object that caused this exception specified. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlSchemaException, CODEPORTING_ARGS(String message, Exception innerException))
 
 Details_XmlSchemaException (const String &message, Exception innerException, int32_t lineNumber, int32_t linePosition)
 Initializes a new instance of the XmlSchemaException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION (Details_XmlSchemaException, CODEPORTING_ARGS(String message, Exception innerException, int32_t lineNumber, int32_t linePosition))
 

Detailed Description

Returns detailed information about the schema exception.

Member Typedef Documentation

◆ Ptr

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

Constructor & Destructor Documentation

◆ Details_XmlSchemaException() [1/4]

System::Xml::Schema::Details_XmlSchemaException::Details_XmlSchemaException ( )
protected

Initializes a new instance of the XmlSchemaException class.

◆ Details_XmlSchemaException() [2/4]

System::Xml::Schema::Details_XmlSchemaException::Details_XmlSchemaException ( const String message)
protected

Initializes a new instance of the XmlSchemaException class with the exception message specified.

Parameters
messageA string description of the error condition.

◆ Details_XmlSchemaException() [3/4]

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

Initializes a new instance of the XmlSchemaException class with the exception message and original Exception object that caused this exception specified.

Parameters
messageA string description of the error condition.
innerExceptionThe original Exception object that caused this exception.

◆ Details_XmlSchemaException() [4/4]

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

Initializes a new instance of the XmlSchemaException class with the exception message specified, and the original Exception object, line number, and line position of the XML that cause this exception specified.

Parameters
messageA string description of the error condition.
innerExceptionThe original Exception object that caused this exception.
lineNumberThe line number of the XML that caused this exception.
linePositionThe line position of the XML that caused this exception.

Member Function Documentation

◆ DoThrow()

void System::Xml::Schema::Details_XmlSchemaException::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::Schema::Details_XmlSchemaException::get_LineNumber ( )

Returns the line number indicating where the error occurred.

Returns
The line number indicating where the error occurred.

◆ get_LinePosition()

int32_t System::Xml::Schema::Details_XmlSchemaException::get_LinePosition ( )

Returns the line position indicating where the error occurred.

Returns
The line position indicating where the error occurred.

◆ get_Message()

String System::Xml::Schema::Details_XmlSchemaException::get_Message ( ) const
override

Returns the description of the error condition of this exception.

Returns
The description of the error condition of this exception.

◆ get_SourceSchemaObject()

SharedPtr< XmlSchemaObject > System::Xml::Schema::Details_XmlSchemaException::get_SourceSchemaObject ( )

The XmlSchemaObject that produced the XmlSchemaException.

Returns
A valid object instance represents a structural validation error in the XML Schema Object Model (SOM).

◆ get_SourceUri()

String System::Xml::Schema::Details_XmlSchemaException::get_SourceUri ( )

Returns the Uniform Resource Identifier (URI) location of the schema that caused the exception.

Returns
The URI location of the schema that caused the exception.

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [1/4]

System::Xml::Schema::Details_XmlSchemaException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlSchemaException  ,
CODEPORTING_ARGS()   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [2/4]

System::Xml::Schema::Details_XmlSchemaException::MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION ( Details_XmlSchemaException  ,
CODEPORTING_ARGS(String message)   
)
protected

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [3/4]

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

◆ MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION() [4/4]

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