
using err.raise method, as to generate app error
hi, f1racing24,
thanks for your rapid reply!
Unfortunatelly, the ADO error number(from Microsoft OLE DB
Provider for SQL Server), which has occured,
was -2147217871 (0x80040E31).
This equals to "vbObjectError + 3633"......
Anyway, you said the upper limit is 65535,
so I'm going to use error number from 10000 to 50000.
(I have never seen the error number above 10000)
Thanks!!!
Quote:
>-----Original Message-----
>I think the valid range of error number is: 0-65535
(inclusive). You should
Quote:
>note that number from 0-512 is reserved for VB/system
error
>Hope this help.
>> hi, experts,
>> I want to know the detail about error number in decimal.
>> using err.raise method, I generate my application error,
>> like;
>> in ASP page----------------------------------------
>> err.raise vbObjectError+
x, "mycomponent", "mycomponent's error"
Quote:
>> ---------------------------------------------------
>> And,
>> I want to display error description message on "custome
error
>> page(500:100 IIS error page)",
>> only when the application error has occured.
>> in custome error page-----------------------------------
-----
>> If Err.Number > vbObjectError Then
>> response.write Err.Description
>> End If
>> --------------------------------------------------------
----
>> This code works fine when display my application errors,
>> but it displayed ADO error also.
>> (Error number is -2147217871 (0x80040E31))
>> So, I want to know,
>> "All existing error number is smaller than vbObjectError
(-2147221504)
>> number???"
>> Plus,
>> "Can I add huge number to vbObjectError? Is there no
limitation?"
>> Thanks,
>.