DOMError
.
*
* @since DOM Level 3
*/
enum ErrorSeverity
{
DOM_SEVERITY_WARNING = 0,
DOM_SEVERITY_ERROR = 1,
DOM_SEVERITY_FATAL_ERROR = 2
};
//@}
// -----------------------------------------------------------------------
// Virtual DOMError interface
// -----------------------------------------------------------------------
/** @name Functions introduced in DOM Level 3 */
//@{
// -----------------------------------------------------------------------
// Getter methods
// -----------------------------------------------------------------------
/**
* Get the severity of the error
*
* "Experimental - subject to change"
* * @see setSeverity * @since DOM Level 3 */ virtual short getSeverity() const = 0; /** * Get the message describing the error that occured. * *"Experimental - subject to change"
* * @see setMessage * @since DOM Level 3 */ virtual const XMLCh* getMessage() const = 0; /** * Get the location of the error * *"Experimental - subject to change"
* * @see setLocation * @since DOM Level 3 */ virtual DOMLocator* getLocation() const = 0; /** * The related platform dependent exception if any. * *"Experimental - subject to change"
* * @see setRelatedException * @since DOM Level 3 */ virtual void* getRelatedException() const = 0; /** * AXMLCh*
indicating which related data is expected in
* relatedData. Users should refer to the specification of the error
* in order to find its XMLCh*
type and relatedData
* definitions if any.
*
* Note: As an example, [DOM Level 3 Load and Save] does not keep the
* [baseURI] property defined on a Processing Instruction information item.
* Therefore, the DOMBuilder generates a SEVERITY_WARNING with type
* "infoset-baseURI" and the lost [baseURI] property represented as a
* DOMString in the relatedData attribute.
*
* "Experimental - subject to change"
* * @see setType * @since DOM Level 3 */ virtual const XMLCh* getType() const = 0; /** * The related DOMError.type dependent data if any. * *"Experimental - subject to change"
* * @see setRelatedData * @since DOM Level 3 */ virtual void* getRelatedData() const = 0; // ----------------------------------------------------------------------- // Setter methods // ----------------------------------------------------------------------- /** * Set the severity of the error * *"Experimental - subject to change"
* * @param severity the type of the error to set * @see getLocation * @since DOM Level 3 */ virtual void setSeverity(const short severity) = 0; /** * Set the error message * *"Experimental - subject to change"
* * @param message the error message to set. * @see getMessage * @since DOM Level 3 */ virtual void setMessage(const XMLCh* const message) = 0; /** * Set the location of the error * *"Experimental - subject to change"
* * @param location the location of the error to set. * @see getLocation * @since DOM Level 3 */ virtual void setLocation(DOMLocator* const location) = 0; /** * The related platform dependent exception if any. * *"Experimental - subject to change"
* * @param exc the related exception to set. * @see getRelatedException * @since DOM Level 3 */ virtual void setRelatedException(void* exc) const = 0; /** * AXMLCh*
indicating which related data is expected in
* relatedData. Users should refer to the specification of the error
* in order to find its XMLCh*
type and relatedData
* definitions if any.
*
* Note: As an example, [DOM Level 3 Load and Save] does not keep the
* [baseURI] property defined on a Processing Instruction information item.
* Therefore, the DOMBuilder generates a SEVERITY_WARNING with type
* "infoset-baseURI" and the lost [baseURI] property represented as a
* DOMString in the relatedData attribute.
*
* "Experimental - subject to change"
* * @see getType * @since DOM Level 3 */ virtual void setType(const XMLCh* type) = 0; /** * The related DOMError.type dependent data if any. * *"Experimental - subject to change"
* * @see getRelatedData * @since DOM Level 3 */ virtual void setRelatedData(void* relatedData) = 0; //@} }; XERCES_CPP_NAMESPACE_END #endif