Features
Ask DevGuru
ASP Resources
Find the Bug
Knowledge Base
Links
Tips of the Week
Tutorials
Products
dgCalendar
dgCharge New!
dgChart New!
dgFileUpload
dgReport New!
dgSort
dgTree
Site
Authoring
Coming Soon
DevGuru Resume
Link to Us
Merchandise
Sponsorships
Testimonials
What's New
Technologies
ADO 2.6
ASP
CSS2
HTML
JavaScript
Jet SQL
Transact-SQL Syntax
VBScript
WML
WMLScript
WSH
XML DOM
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-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information