Skip to content

Latest commit

 

History

History
9 lines (8 loc) · 849 Bytes

ILogScanError.md

File metadata and controls

9 lines (8 loc) · 849 Bytes

interface ILogScanError

Interface for Logging and Querying errors during scanning/parsing/other operations.

All Scanner derivatives implement this interface on the bound ScanErrorLog

Members Description
Implementation:
P: bool IsError Query if an error is currently logged.
M: bool LogError(string errorMsg, string errorContext = "Parse error", int errIndex = -1) Log an error while scanning/parsing/other.

Parameters:
errorMsg: Error message to log.
errorContext: Error context to log.
errIndex: Error Index in source (-1 = current else specific)

Returns:
Typically should be implemented to always return false so that the caller may return this as an error condition.