jasp.buildin
Class ASPError

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

public class ASPError
extends java.lang.Exception

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.

See Also:
Serialized Form

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

ASPError

public ASPError()
Creates an ASPError object.

ASPError

public ASPError(java.lang.String str)
Creates an ASPError object.
Parameters:
str - the error message.

ASPError

public ASPError(int number)
Creates an ASPError object.
Parameters:
number - the number of the error.

ASPError

public ASPError(int number,
                java.lang.String str)
Creates an ASPError object.
Parameters:
number - the number of the error.
str - the error source.

ASPError

public ASPError(java.sql.SQLException ex,
                java.lang.String str)
Creates an ASPError object.
Parameters:
ex - a SQLException
str - the error source.
Method Detail

getASPCode

public java.lang.String getASPCode()
Returns an error code generated by IIS.
Returns:
an error code.

getNumber

public int getNumber()
Returns the standard COM error code
Returns:
a integer value.

getCategory

public java.lang.String getCategory()
Indicates if the source of the error was internal to ASP, the scripting language, or an object
Returns:
a string value.

getFile

public java.lang.String getFile()
Indicates the name of the .asp file that was being processed when the error occurred
Returns:
the name of the .asp file.

getLine

public long getLine()
Indicates the line within the .asp file that generated the error.
Returns:
the line number.

getDescription

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

getASPDescription

public java.lang.String getASPDescription()
Returns a more detailed description of the error if it is an ASP-related error.
Returns:
the detailed description of the error.

getColumn

public long getColumn()
Indicates the column position within the .asp file that generated the error. return the column number.

getSource

public java.lang.String getSource()
Returns the actual source code, when available, of the line that caused the error.
Returns:
the source .

setASPCode

public void setASPCode(java.lang.String as)
Sets an error code generated by IIS.
Parameters:
as - the error code.

setNumber

public void setNumber(int number)
Sets the error code
Parameters:
number - the error code.

setCategory

public void setCategory(java.lang.String cats)
Sets the category of the error.
Parameters:
cats - the category of the error.

setFile

public void setFile(java.lang.String file)
Sets the name of the .asp file.
Parameters:
file - the name of the .asp file.

setLine

public void setLine(long line)
Sets the line number
Parameters:
line - the line number.

setDescription

public void setDescription(java.lang.String des)
Sets the short description of the error.
Parameters:
des - the short description.

SetASPDescription

public void SetASPDescription(java.lang.String s)
Sets the detailed description of the error.
Parameters:
s - the descrition of the error.

setColumn

public void setColumn(long col)
Sets the column number.
Parameters:
col - the column number.

setSource

public void setSource(java.lang.String source)
Sets the source of the error.
Parameters:
source - the source of the error.