\section{KJS::Error Class Reference}
\label{classKJS_1_1Error}\index{KJS::Error@{KJS::Error}}
Factory methods for error objects.  


{\tt \#include $<$object.h$>$}

\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
{\bf Object} {\bf create} ({\bf Exec\-State} $\ast$exec, Error\-Type errtype=General\-Error, const  char $\ast$message=0, int lineno=-1, int source\-Id=-1)
\begin{CompactList}\small\item\em Factory method for error objects. \item\end{CompactList}\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
const  char $\ast$const $\ast$const  {\bf error\-Names} = error\-Names\-Arr
\begin{CompactList}\small\item\em Array of error names corresponding to Error\-Type. \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
Factory methods for error objects. 



Definition at line 590 of file object.h.

\subsection{Member Function Documentation}
\index{KJS::Error@{KJS::Error}!create@{create}}
\index{create@{create}!KJS::Error@{KJS::Error}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Object} Error::create ({\bf Exec\-State} $\ast$ {\em exec}, Error\-Type {\em errtype} = General\-Error, const char $\ast$ {\em message} = 0, int {\em lineno} = -1, int {\em source\-Id} = -1)\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Error_e0}


Factory method for error objects. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em exec}]The current execution state \item[{\em errtype}]Type of error. \item[{\em message}]Optional error message. \item[{\em lineno}]Optional line number. \item[{\em lineno}]Optional source id. \end{description}
\end{Desc}


Definition at line 638 of file object.cpp.

References KJS::List::append(), KJS::Interpreter::builtin\-Error(), KJS::Interpreter::builtin\-Eval\-Error(), KJS::Interpreter::builtin\-Range\-Error(), KJS::Interpreter::builtin\-Reference\-Error(), KJS::Interpreter::builtin\-Syntax\-Error(), KJS::Interpreter::builtin\-Type\-Error(), KJS::Interpreter::builtin\-URIError(), KJS::Object::construct(), error\-Names, KJS::Exec\-State::interpreter(), and KJS::Object::put().

\subsection{Member Data Documentation}
\index{KJS::Error@{KJS::Error}!errorNames@{errorNames}}
\index{errorNames@{errorNames}!KJS::Error@{KJS::Error}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const  char $\ast$const $\ast$const  {\bf Error::error\-Names} = error\-Names\-Arr\hspace{0.3cm}{\tt  [static]}}\label{classKJS_1_1Error_s0}


Array of error names corresponding to Error\-Type. 



Definition at line 636 of file object.cpp.

Referenced by create().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
object.h\item 
object.cpp\end{CompactItemize}
