.TH "KJS::Error" 3 "28 Jan 2004" "kjs Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KJS::Error \- Factory methods for error objects.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <object.h>\fP
.PP
.SS "Static Public Member Functions"

.in +1c
.ti -1c
.RI "\fBObject\fP \fBcreate\fP (\fBExecState\fP *exec, ErrorType errtype=GeneralError, const  char *message=0, int lineno=-1, int sourceId=-1)"
.br
.RI "\fIFactory method for error objects. \fP"
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "const  char *const *const  \fBerrorNames\fP = errorNamesArr"
.br
.RI "\fIArray of error names corresponding to \fBErrorType\fP. \fP"
.in -1c
.SH "Detailed Description"
.PP 
Factory methods for error objects. Definition at line 590 of file object.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBObject\fP Error::create (\fBExecState\fP * exec, ErrorType errtype = GeneralError, const char * message = 0, int lineno = -1, int sourceId = -1)\fC [static]\fP"
.PP
Factory method for error objects. \fBParameters:\fP
.RS 4
\fIexec\fP The current execution state 
.br
\fIerrtype\fP Type of error. 
.br
\fImessage\fP Optional error message. 
.br
\fIlineno\fP Optional line number. 
.br
\fIlineno\fP Optional source id. 
.RE
.PP
Definition at line 638 of file object.cpp.
.PP
References KJS::List::append(), KJS::Interpreter::builtinError(), KJS::Interpreter::builtinEvalError(), KJS::Interpreter::builtinRangeError(), KJS::Interpreter::builtinReferenceError(), KJS::Interpreter::builtinSyntaxError(), KJS::Interpreter::builtinTypeError(), KJS::Interpreter::builtinURIError(), KJS::Object::construct(), errorNames, KJS::ExecState::interpreter(), and KJS::Object::put().
.SH "Member Data Documentation"
.PP 
.SS "const  char *const *const  \fBError::errorNames\fP = errorNamesArr\fC [static]\fP"
.PP
Array of error names corresponding to \fBErrorType\fP. Definition at line 636 of file object.cpp.
.PP
Referenced by create().

.SH "Author"
.PP 
Generated automatically by Doxygen for kjs Library from the source code.
