/
Job_ErrorHandling
Job_ErrorHandling
Description
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)
Current function
sText (String)
Description of error
iErrNumber (Integer)
Runtime errorcode
Example
VBScript
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
Related functions
, multiple selections available,
Related content
$cs.Job_Start
$cs.Job_Start
More like this
$cs.Job_WriteLog
$cs.Job_WriteLog
More like this
File_WaitWhileExist
File_WaitWhileExist
More like this
Exit-PSScript
Exit-PSScript
More like this
Log_SubmitLogs
Log_SubmitLogs
More like this
Log_RegisterWellKnownFiles
Log_RegisterWellKnownFiles
More like this