|
|||||||||
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.vbs.vbErr
Err Contains information about run-time errors. Accepts the Raise and Clear methods for generating and clearing run-time errors. The Err object is an intrinsic object with global scope, there is no need to create an instance of it in your code. The properties of the Err object are set by the generator of an error ?Visual Basic, an Automation object, or the VBScript programmer. The default property of the Err object is Number. Err.Number contains an integer and can be used by an Automation object to return an SCODE. When a run-time error occurs, the properties of the Err object are filled with information that uniquely identifies the error and information that can be used to handle it. To generate a run-time error in your code, use the Raise method. The Err object's properties are reset to zero or zero-length strings ("") after an On Error Resume Next statement. The Clear method can be used to explicitly reset Err.
Constructor Summary | |
vbErr()
Constructs a vbErr object. |
Method Summary | |
variant |
Clear()
Clears all of the errors. |
java.lang.String |
getDescription()
Returns the description of the error. |
int |
getHelpContext()
|
java.lang.String |
getHelpFile()
|
java.lang.String |
getMessage()
|
int |
getNumber()
Returns the error No. |
java.lang.String |
getSource()
Returns the source of the error. |
void |
Goto0()
Disables the error handling. |
void |
Raise(int number)
Raise an error. |
void |
Raise(int number,
java.lang.String source)
Raise an error. |
void |
Raise(int number,
java.lang.String source,
java.lang.String description)
Raise an error. |
void |
Raise(int number,
java.lang.String source,
java.lang.String description,
java.lang.String helpfile)
Raise an error. |
void |
Raise(int number,
java.lang.String source,
java.lang.String description,
java.lang.String helpfile,
int helpcontext)
Raise an error. |
void |
ResumeNext()
Enables error-handling. |
void |
setDescription(java.lang.String des)
|
void |
setHelpContext(int h)
|
void |
setHelpFile(java.lang.String h)
|
void |
setNumber(int number)
Sets the error No. |
void |
setSource(java.lang.String s)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public vbErr()
Method Detail |
public void setHelpFile(java.lang.String h)
public java.lang.String getHelpFile()
public void setHelpContext(int h)
public int getHelpContext()
public int getNumber()
public void setNumber(int number)
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String getSource()
public void setSource(java.lang.String s)
public java.lang.String getDescription()
public void setDescription(java.lang.String des) throws java.lang.Exception
public variant Clear()
public void Raise(int number, java.lang.String source, java.lang.String description, java.lang.String helpfile, int helpcontext) throws java.lang.Exception
public void Raise(int number, java.lang.String source) throws java.lang.Exception
public void Raise(int number, java.lang.String source, java.lang.String description, java.lang.String helpfile) throws java.lang.Exception
public void Raise(int number, java.lang.String source, java.lang.String description) throws java.lang.Exception
public void Raise(int number) throws java.lang.Exception
public void ResumeNext()
public void Goto0()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |