|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--jasp.buildin.ASPError
You can use the ASPError object to obtain information about an error condition that has occurred in script in an ASP page. The ASPError object is returned by the Server.GetLastError method.
Constructor Summary | |
ASPError()
Creates an ASPError object. |
|
ASPError(int number)
Creates an ASPError object. |
|
ASPError(int number,
java.lang.String str)
Creates an ASPError object. |
|
ASPError(java.sql.SQLException ex,
java.lang.String str)
Creates an ASPError object. |
|
ASPError(java.lang.String str)
Creates an ASPError object. |
Method Summary | |
java.lang.String |
getASPCode()
Returns an error code generated by IIS. |
java.lang.String |
getASPDescription()
Returns a more detailed description of the error if it is an ASP-related error. |
java.lang.String |
getCategory()
Indicates if the source of the error was internal to ASP, the scripting language, or an object |
long |
getColumn()
Indicates the column position within the .asp file that generated the error. |
java.lang.String |
getDescription()
Returns a short description of the error |
java.lang.String |
getFile()
Indicates the name of the .asp file that was being processed when the error occurred |
long |
getLine()
Indicates the line within the .asp file that generated the error. |
int |
getNumber()
Returns the standard COM error code |
java.lang.String |
getSource()
Returns the actual source code, when available, of the line that caused the error. |
void |
setASPCode(java.lang.String as)
Sets an error code generated by IIS. |
void |
SetASPDescription(java.lang.String s)
Sets the detailed description of the error. |
void |
setCategory(java.lang.String cats)
Sets the category of the error. |
void |
setColumn(long col)
Sets the column number. |
void |
setDescription(java.lang.String des)
Sets the short description of the error. |
void |
setFile(java.lang.String file)
Sets the name of the .asp file. |
void |
setLine(long line)
Sets the line number |
void |
setNumber(int number)
Sets the error code |
void |
setSource(java.lang.String source)
Sets the source of the error. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ASPError()
public ASPError(java.lang.String str)
str
- the error message.public ASPError(int number)
number
- the number of the error.public ASPError(int number, java.lang.String str)
number
- the number of the error.str
- the error source.public ASPError(java.sql.SQLException ex, java.lang.String str)
ex
- a SQLExceptionstr
- the error source.Method Detail |
public java.lang.String getASPCode()
public int getNumber()
public java.lang.String getCategory()
public java.lang.String getFile()
public long getLine()
public java.lang.String getDescription()
public java.lang.String getASPDescription()
public long getColumn()
public java.lang.String getSource()
public void setASPCode(java.lang.String as)
as
- the error code.public void setNumber(int number)
number
- the error code.public void setCategory(java.lang.String cats)
cats
- the category of the error.public void setFile(java.lang.String file)
file
- the name of the .asp file.public void setLine(long line)
line
- the line number.public void setDescription(java.lang.String des)
des
- the short description.public void SetASPDescription(java.lang.String s)
s
- the descrition of the error.public void setColumn(long col)
col
- the column number.public void setSource(java.lang.String source)
source
- the source of the error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |