Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When Job_ErrorHandling is called the error description (sText) is placed in the top of the log. Function will return FALSE to indicate that the script has failed

 


Syntax

Job_ErrorHandling(sFunction, sText, iErrNumber) As Boolean 


Parameters

sFunction (String)

...

Runtime errorcode


Example

Code Block
language
languagevb
themeEclipse
vbtitleVBScript
Set oFsoDrv = oFso.GetDrive("A")
sValue = oFsoDrv.FileSystem
If (sValue <> "") Then
  If bStatus Then bStatus = Job_WriteLog("Sys_GetFileSystemType", "FileSystem Type for Drive A is '" & sValue & "'", bStatus, True)
Else
  sText = "Device not ready or unknown file system type for drive 'A'"
  bStatus = Job_ErrorHandling("Custom", sText, iErrNumber)
End If

Scripting Guidelines 


Related functions

Job LogError