\section{DOM::DOMException Class Reference}
\label{classDOM_1_1DOMException}\index{DOM::DOMException@{DOM::DOMException}}
{\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} operations only raise exceptions in ''exceptional'' circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).  


{\tt \#include $<$dom\_\-exception.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Exception\-Code} \{ \par
{\bf INDEX\_\-SIZE\_\-ERR} =  1, 
{\bf DOMSTRING\_\-SIZE\_\-ERR} =  2, 
{\bf HIERARCHY\_\-REQUEST\_\-ERR} =  3, 
{\bf WRONG\_\-DOCUMENT\_\-ERR} =  4, 
\par
{\bf INVALID\_\-CHARACTER\_\-ERR} =  5, 
{\bf NO\_\-DATA\_\-ALLOWED\_\-ERR} =  6, 
{\bf NO\_\-MODIFICATION\_\-ALLOWED\_\-ERR} =  7, 
{\bf NOT\_\-FOUND\_\-ERR} =  8, 
\par
{\bf NOT\_\-SUPPORTED\_\-ERR} =  9, 
{\bf INUSE\_\-ATTRIBUTE\_\-ERR} =  10, 
{\bf INVALID\_\-STATE\_\-ERR} =  11, 
{\bf SYNTAX\_\-ERR} =  12, 
\par
{\bf INVALID\_\-MODIFICATION\_\-ERR} =  13, 
{\bf NAMESPACE\_\-ERR} =  14, 
{\bf INVALID\_\-ACCESS\_\-ERR} =  15
 \}
\begin{CompactList}\small\item\em An integer indicating the type of error generated. \item\end{CompactList}\end{CompactItemize}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf DOMException} (unsigned short \_\-code)\label{classDOM_1_1DOMException_a0}

\item 
{\bf DOMException} (const  {\bf DOMException} \&other)\label{classDOM_1_1DOMException_a1}

\item 
{\bf DOMException} \& {\bf operator=} (const  {\bf DOMException} \&other)\label{classDOM_1_1DOMException_a2}

\end{CompactItemize}
\subsection*{Public Attributes}
\begin{CompactItemize}
\item 
unsigned short {\bf code}\label{classDOM_1_1DOMException_o0}

\end{CompactItemize}


\subsection{Detailed Description}
{\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} operations only raise exceptions in ''exceptional'' circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable). 

In general, {\bf DOM}{\rm (p.\,\pageref{namespaceDOM})} methods return specific error values in ordinary processing situation, such as out-of-bound errors when using {\tt  {\bf Node\-List}{\rm (p.\,\pageref{classDOM_1_1NodeList})} } .

Implementations may raise other exceptions under other circumstances. For example, implementations may raise an implementation-dependent exception if a {\tt  null } argument is passed.

Some languages and object systems do not support the concept of exceptions. For such systems, error conditions may be indicated using native error reporting mechanisms. For some bindings, for example, methods may return error codes similar to those listed in the corresponding method descriptions. 



Definition at line 58 of file dom\_\-exception.h.

\subsection{Member Enumeration Documentation}
\index{DOM::DOMException@{DOM::DOMException}!ExceptionCode@{ExceptionCode}}
\index{ExceptionCode@{ExceptionCode}!DOM::DOMException@{DOM::DOMException}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf DOM::DOMException::Exception\-Code}}\label{classDOM_1_1DOMException_w15}


An integer indicating the type of error generated. 



Definition at line 72 of file dom\_\-exception.h.

The documentation for this class was generated from the following file:\begin{CompactItemize}
\item 
dom\_\-exception.h\end{CompactItemize}
