gian_damico
Junior Member
Posts: 3
Registered: 6/20/2007
Location: Venezuela
Member Is Offline
|
| posted on 7/4/2007 at 02:57 PM |
|
|
Error Handling
Is there any documentation about error handling techniques usin ASPZip Component?
|
|
|
wit
Member
Posts: 24
Registered: 11/19/2004
Member Is Offline
|
| posted on 7/5/2007 at 08:26 AM |
|
|
You can hadle errors the same way you do it in other asp scripts
e.g.
| Code: |
//JScript
try
{
zip.Open("");
zip.Read(); //this line will cause error
}
catch(e)
{
handleError(e.description);
}
|
| Code: |
'VBScript
On Error Resume Next
zip.Open ""
zip.Read 'this line will cause error
If Err.Number <> 0 then
HandleError Err.Description
Error.Clear
End If
|
|
|
|