Quick References
ADO
ASP
CSS2
HTML
JavaScript
Jet SQL
VBScript
WML
WMLScript
WSH
XHTML
XML DOM
XSLT
Features
Knowledge Base
Tutorials
Partners
ZVON.ORG
XML
Planet Source Code
VisualBuilder
Web Design
Your HTML Source
XML/XSLT Forums
ASPAlliance
Scripts
Programmers Heaven
Tek-Tips Forums
Developer Fusion
Code Project
All Methods
Err Object
METHOD: Err.Raise
Implemented in version 1.0
object.
Raise
(number[, source, description, helpfile, helpcontext])
This method is used to generate a VBScript runtime error. The arguments, with the exception of
number
, are all optional. Note that if no arguments are supplied, any error values that have not been cleared from the Err object will automatically be inherited by the new instance of the object.
Code:
<%
On Error Resume Next
Err.Raise 8 'raise a user-defined error
Err.Description = "My Error"
Err.Source = "MyAppName"
Response.Write "An Error of the type '" & Err.Description & "' has been_
caused by '" & Err.Source & "'."
%>
Output:
"An Error of the type 'My Error' has caused by 'MyAppName'."
Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information