Thursday, December 13, 2007

vbscript error numbers w/ try catch class exmpl

try catch class

vbscript error ms page
==============================
Select Case Err
Case 61
sErrMsg = "Disk Full"
Case 71
sErrMsg = "Disk Not Ready"
Case 76
sErrMsg = "Path not found"
Case 70
sErrMsg = "Permission denied"

case else

sErrMsg = Err & " Undefined"

End Select

http://blogs.msdn.com/ericlippert/archive/2004/09/09/227461.aspx

=============================

5 Invalid procedure call or argument 6 Overflow 7 Out of memory 9 Subscript out of range 10 This array is fixed or temporarily locked 11 Division by zero 13 Type mismatch 14 Out of string space 17 Can't perform requested operation 28 Out of stack space 35 Sub or Function not defined 48 Error in loading DLL 51 Internal error 52 Bad file name or number 53 File not found 54 Bad file mode 55 File already open 57 Device I/O error 58 File already exists 61 Disk full 62 Input past end of file 67 Too many files 68 Device unavailable 70 Permission denied 71 Disk not ready 74 Can't rename with different drive 75 Path/File access error 76 Path not found 91 Object variable not set 92 For loop not initialized 94 Invalid use of Null 322 Can't create necessary temporary file 424 Object required 429 ActiveX component can't create object 430 Class doesn't support Automation 432 File name or class name not found during Automation operation 438 Object doesn't support this property or method 440 Automation error 445 Object doesn't support this action 446 Object doesn't support named arguments 447 Object doesn't support current locale setting 448 Named argument not found 449 Argument not optional 450 Wrong number of arguments or invalid property assignment 451 Object not a collection 453 Specified DLL function not found 455 Code resource lock error 457 This key is already associated with an element of this collection 458 Variable uses an Automation type not supported in VBScript 462 The remote server machine does not exist or is unavailable 481 Invalid picture 500 Variable is undefined 501 Illegal assignment 502 Object not safe for scripting 503 Object not safe for initializing 504 Object not safe for creating 505 Invalid or unqualified reference 506 Class not defined 507 An exception occurred32811 Element not found32812 The specified date is not available in the current locale's calendar

1 comment:

Unknown said...

Here is a case statement with all of the errors from the link:

Select Case Err
Case 5
sErrMsg = "Invalid procedure call or argument"
Case 6
sErrMsg = "Overflow"
Case 7
sErrMsg = "Out of memory"
Case 9
sErrMsg = "Subscript out of range"
Case 10
sErrMsg = "This array is fixed or temporarily locked"
Case 11
sErrMsg = "Division by zero"
Case 13
sErrMsg = "Type mismatch"
Case 14
sErrMsg = "Out of string space"
Case 17
sErrMsg = "Can't perform requested operation"
Case 28
sErrMsg = "Out of stack space"
Case 35
sErrMsg = "Sub or Function not defined"
Case 48
sErrMsg = "Error in loading DLL"
Case 51
sErrMsg = "Internal error"
Case 52
sErrMsg = "Bad file name or number"
Case 53
sErrMsg = "File not found"
Case 54
sErrMsg = "Bad file mode"
Case 55
sErrMsg = "File already open"
Case 57
sErrMsg = "Device I/O error"
Case 58
sErrMsg = "File already exists"
Case 61
sErrMsg = "Disk full"
Case 62
sErrMsg = "Input past end of file"
Case 67
sErrMsg = "Too many files"
Case 68
sErrMsg = "Device unavailable"
Case 70
sErrMsg = "Permission denied"
Case 71
sErrMsg = "Disk not ready"
Case 74
sErrMsg = "Can't rename with different drive"
Case 75
sErrMsg = "Path/File access error"
Case 76
sErrMsg = "Path not found"
Case 91
sErrMsg = "Object variable not set"
Case 92
sErrMsg = "For loop not initialized"
Case 94
sErrMsg = "Invalid use of Null"
Case 322
sErrMsg = "Can't create necessary temporary file"
Case 424
sErrMsg = "Object required"
Case 429
sErrMsg = "ActiveX component can't create object"
Case 430
sErrMsg = "Class doesn't support Automation"
Case 432
sErrMsg = "File name or class name not found during Automation operation"
Case 438
sErrMsg = "Object doesn't support this property or method"
Case 440
sErrMsg = "Automation error"
Case 445
sErrMsg = "Object doesn't support this action"
Case 446
sErrMsg = "Object doesn't support named arguments"
Case 447
sErrMsg = "Object doesn't support current locale setting"
Case 448
sErrMsg = "Named argument not found"
Case 449
sErrMsg = "Argument not optional"
Case 450
sErrMsg = "Wrong number of arguments or invalid property assignment"
Case 451
sErrMsg = "Object not a collection"
Case 453
sErrMsg = "Specified DLL function not found"
Case 455
sErrMsg = "Code resource lock error"
Case 457
sErrMsg = "This key is already associated with an element of this collection"
Case 458
sErrMsg = "Variable uses an Automation type not supported in VBScript"
Case 462
sErrMsg = "The remote server machine does not exist or is unavailable"
Case 481
sErrMsg = "Invalid picture"
Case 500
sErrMsg = "Variable is undefined"
Case 501
sErrMsg = "Illegal assignment"
Case 502
sErrMsg = "Object not safe for scripting"
Case 503
sErrMsg = "Object not safe for initializing"
Case 504
sErrMsg = "Object not safe for creating"
Case 505
sErrMsg = "Invalid or unqualified reference"
Case 506
sErrMsg = "Class not defined"
Case 507
sErrMsg = "An exception occurred"
Case 32811
sErrMsg = "Element not found"
Case 32812
sErrMsg = "The specified date is not available in the current locale's calendar"
Case else
sErrMsg = Err & " Undefined"
End Select