DOMError Class Reference

#include <DOMError.hpp>

List of all members.

Public Types

 DOM_SEVERITY_WARNING = 0
 DOM_SEVERITY_ERROR = 1
 DOM_SEVERITY_FATAL_ERROR = 2
Public constants
enum  ErrorSeverity { DOM_SEVERITY_WARNING = 0, DOM_SEVERITY_ERROR = 1, DOM_SEVERITY_FATAL_ERROR = 2 }

Public Member Functions

Destructor
virtual ~DOMError ()
Functions introduced in DOM Level 3
virtual short getSeverity () const =0
virtual const XMLChgetMessage () const =0
virtual DOMLocatorgetLocation () const =0
virtual void * getRelatedException () const =0
virtual const XMLChgetType () const =0
virtual void * getRelatedData () const =0
virtual void setSeverity (const short severity)=0
virtual void setMessage (const XMLCh *const message)=0
virtual void setLocation (DOMLocator *const location)=0
virtual void setRelatedException (void *exception) const =0
virtual void setType (const XMLCh *type)=0
virtual void setRelatedData (void *relatedData)=0

Protected Member Functions

Hidden constructors
 DOMError ()

Private Member Functions

Unimplemented constructors and operators
 DOMError (const DOMError &)
DOMErroroperator= (const DOMError &)


Detailed Description

DOMError is an interface that describes an error.

See also:
DOMErrorHandler::handleError
Since:
DOM Level 3

Definition at line 115 of file DOMError.hpp.


Member Enumeration Documentation

enum DOMError::ErrorSeverity

The severity of the error described by the DOMError.

Since:
DOM Level 3
Enumerator:
DOM_SEVERITY_WARNING 
DOM_SEVERITY_ERROR 
DOM_SEVERITY_FATAL_ERROR 

Definition at line 159 of file DOMError.hpp.


Constructor & Destructor Documentation

DOMError::DOMError (  )  [inline, protected]

Definition at line 123 of file DOMError.hpp.

DOMError::DOMError ( const DOMError  )  [private]

virtual DOMError::~DOMError (  )  [inline, virtual]

Destructor

Definition at line 146 of file DOMError.hpp.


Member Function Documentation

virtual DOMLocator* DOMError::getLocation (  )  const [pure virtual]

Get the location of the error

"Experimental - subject to change"

See also:
setLocation
Since:
DOM Level 3

virtual const XMLCh* DOMError::getMessage (  )  const [pure virtual]

Get the message describing the error that occured.

"Experimental - subject to change"

See also:
setMessage
Since:
DOM Level 3

virtual void* DOMError::getRelatedData (  )  const [pure virtual]

The related DOMError.type dependent data if any.

"Experimental - subject to change"

See also:
setRelatedData
Since:
DOM Level 3

virtual void* DOMError::getRelatedException (  )  const [pure virtual]

The related platform dependent exception if any.

"Experimental - subject to change"

See also:
setRelatedException
Since:
DOM Level 3

virtual short DOMError::getSeverity (  )  const [pure virtual]

Get the severity of the error

"Experimental - subject to change"

See also:
setSeverity
Since:
DOM Level 3

virtual const XMLCh* DOMError::getType (  )  const [pure virtual]

A XMLCh* 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 also:
setType
Since:
DOM Level 3

DOMError& DOMError::operator= ( const DOMError  )  [private]

virtual void DOMError::setLocation ( DOMLocator *const   location  )  [pure virtual]

Set the location of the error

"Experimental - subject to change"

Parameters:
location the location of the error to set.
See also:
getLocation
Since:
DOM Level 3

virtual void DOMError::setMessage ( const XMLCh *const   message  )  [pure virtual]

Set the error message

"Experimental - subject to change"

Parameters:
message the error message to set.
See also:
getMessage
Since:
DOM Level 3

virtual void DOMError::setRelatedData ( void *  relatedData  )  [pure virtual]

The related DOMError.type dependent data if any.

"Experimental - subject to change"

See also:
getRelatedData
Since:
DOM Level 3

virtual void DOMError::setRelatedException ( void *  exception  )  const [pure virtual]

The related platform dependent exception if any.

"Experimental - subject to change"

Parameters:
exception the related exception to set.
See also:
getRelatedException
Since:
DOM Level 3

virtual void DOMError::setSeverity ( const short  severity  )  [pure virtual]

Set the severity of the error

"Experimental - subject to change"

Parameters:
severity the type of the error to set
See also:
getLocation
Since:
DOM Level 3

virtual void DOMError::setType ( const XMLCh type  )  [pure virtual]

A XMLCh* 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 also:
getType
Since:
DOM Level 3


The documentation for this class was generated from the following file:
Generated on Thu Dec 7 01:29:09 2006 for DT2005.panorama by  doxygen 1.4.7