\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 
static {\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)
\end{CompactItemize}
\subsection*{Static Public Attributes}
\begin{CompactItemize}
\item 
static const char $\ast$const $\ast$const {\bf error\-Names} = error\-Names\-Arr
\end{CompactItemize}


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



Definition at line 625 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} = {\tt GeneralError}, const char $\ast$ {\em message} = {\tt 0}, int {\em lineno} = {\tt -1}, int {\em source\-Id} = {\tt -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 501 of file object.cpp.

References KJS::List::append(), KJS::Object::construct(), KJS::Object::dynamic\-Cast(), error\-Names, and KJS::Object::put().

Referenced by KJS::Object::call(), KJS::Reference::get\-Base(), KJS::Reference::get\-Value(), and KJS::Reference::put\-Value().

\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 499 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}
