jasp.vbs
Class vbErr

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jasp.vbs.vbErr
All Implemented Interfaces:
java.io.Serializable

public class vbErr
extends java.lang.Exception

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.

See Also:
Serialized Form

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

vbErr

public vbErr()
Constructs a vbErr object.
Method Detail

setHelpFile

public void setHelpFile(java.lang.String h)

getHelpFile

public java.lang.String getHelpFile()

setHelpContext

public void setHelpContext(int h)

getHelpContext

public int getHelpContext()

getNumber

public int getNumber()
Returns the error No.

setNumber

public void setNumber(int number)
Sets the error No.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

getSource

public java.lang.String getSource()
Returns the source of the error.

setSource

public void setSource(java.lang.String s)

getDescription

public java.lang.String getDescription()
Returns the description of the error.

setDescription

public void setDescription(java.lang.String des)
                    throws java.lang.Exception

Clear

public variant Clear()
Clears all of the errors. VBScript calls the Clear method automatically whenever any of the following statements are executed: On Error Resume Next Exit Sub Exit Function

Raise

public void Raise(int number,
                  java.lang.String source,
                  java.lang.String description,
                  java.lang.String helpfile,
                  int helpcontext)
           throws java.lang.Exception
Raise an error.

Raise

public void Raise(int number,
                  java.lang.String source)
           throws java.lang.Exception
Raise an error.

Raise

public void Raise(int number,
                  java.lang.String source,
                  java.lang.String description,
                  java.lang.String helpfile)
           throws java.lang.Exception
Raise an error.

Raise

public void Raise(int number,
                  java.lang.String source,
                  java.lang.String description)
           throws java.lang.Exception
Raise an error.

Raise

public void Raise(int number)
           throws java.lang.Exception
Raise an error.

ResumeNext

public void ResumeNext()
Enables error-handling. On Error Resume Next

Goto0

public void Goto0()
Disables the error handling. On Error GoTo 0