.TH "KJS::Error" kde3 "11 Jun 2005" "Version Version 3.4.1" "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 "static \fBObject\fP \fBcreate\fP (\fBExecState\fP *exec, ErrorType errtype=GeneralError, const char *message=0, int lineno=-1, int sourceId=-1)"
.br
.in -1c
.SS "Static Public Attributes"

.in +1c
.ti -1c
.RI "static const char *const *const \fBerrorNames\fP = errorNamesArr"
.br
.in -1c
.SH "Detailed Description"
.PP 
Factory methods for error objects. 
.PP
Definition at line 625 of file object.h.
.SH "Member Function Documentation"
.PP 
.SS "\fBObject\fP Error::create (\fBExecState\fP * exec, ErrorType errtype = \fCGeneralError\fP, const char * message = \fC0\fP, int lineno = \fC-1\fP, int sourceId = \fC-1\fP)\fC [static]\fP"
.PP
Factory method for error objects. 
.PP
\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

.PP
Definition at line 501 of file object.cpp.
.PP
References KJS::List::append(), KJS::Object::construct(), KJS::Object::dynamicCast(), errorNames, and KJS::Object::put().
.PP
Referenced by KJS::Object::call(), KJS::Reference::getBase(), KJS::Reference::getValue(), and KJS::Reference::putValue().
.SH "Member Data Documentation"
.PP 
.SS "const char *const *const \fBError::errorNames\fP = errorNamesArr\fC [static]\fP"
.PP
Array of error names corresponding to ErrorType. 
.PP
Definition at line 499 of file object.cpp.
.PP
Referenced by create().

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