Exceptions & Warnings¶
Exceptions & warnings.
-
exception
zlogging._exc.ZeekException¶ Bases:
ExceptionBase exception.
-
exception
zlogging._exc.ZeekWarning¶ Bases:
WarningBase warning.
-
exception
zlogging._exc.ParserError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.ZeekException,ValueErrorError when parsing logs.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where parsing failed.
- Variables
msg (str) – The unformatted error message.
field – (str) The field name where parsing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.JSONParserError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.ParserError,json.decoder.JSONDecodeErrorError when parsing JSON log.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where parsing failed.
- Variables
msg (str) – The unformatted error message.
field – (str) The field name where parsing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.ASCIIPaserError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.ParserErrorError when parsing ASCII log.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where parsing failed.
- Variables
msg (str) – The unformatted error message.
field – (str) The field name where parsing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.WriterError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.ZeekException,TypeErrorError when writing logs.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where writing failed.
- Variables
msg (str) – The unformatted error message.
field (str) – The field name where writing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.JSONWriterError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.WriterErrorError when writing JSON logs.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where writing failed.
- Variables
msg (str) – The unformatted error message.
field (str) – The field name where writing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.ASCIIWriterError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.WriterErrorError when writing ASCII logs.
- Parameters
msg (str) – The unformatted error message.
lineno (
int, optional) – The line corresponding to the failure.field (
str, optional) – The field name where writing failed.
- Variables
msg (str) – The unformatted error message.
field (str) – The field name where writing failed.
lineno (int) – The line corresponding to the failure.
-
exception
zlogging._exc.WriterFormatError(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.WriterError,ValueErrorUnsupported format.
- Parameters
msg (str) – the unformatted error message
lineno (
int, optional) – the line corresponding to the failurefield (
str, optional) – the field name where writing failed
- Variables
msg (str) – the unformatted error message
field (str) – the field name where writing failed
lineno (int) – the line corresponding to the failure
-
exception
zlogging._exc.ParserWarning¶ Bases:
zlogging._exc.ZeekWarning,UserWarningWarning when parsing logs.
-
exception
zlogging._exc.JSONParserWarning¶ Bases:
zlogging._exc.ParserWarningWarning when parsing logs in JSON format.
-
exception
zlogging._exc.ASCIIParserWarning¶ Bases:
zlogging._exc.ParserWarningWarning when parsing logs in ASCII format.
-
exception
zlogging._exc.ZeekTypeError¶ Bases:
zlogging._exc.ZeekException,TypeErrorInvalid Bro/Zeek data type.
-
exception
zlogging._exc.ZeekValueError¶ Bases:
zlogging._exc.ZeekException,ValueErrorInvalid Bro/Zeek data value.
-
exception
zlogging._exc.ZeekNotImplemented¶ Bases:
zlogging._exc.ZeekException,NotImplementedErrorMethod not implemented.
-
exception
zlogging._exc.ModelError¶ Bases:
zlogging._exc.ZeekExceptionInvalid model data.
-
exception
zlogging._exc.ModelTypeError¶ Bases:
zlogging._exc.ModelError,TypeErrorInvalid model data type.
-
exception
zlogging._exc.ModelValueError¶ Bases:
zlogging._exc.ModelError,ValueErrorInvalid model data value.
-
exception
zlogging._exc.ModelFormatError¶ Bases:
zlogging._exc.ModelError,ValueErrorUnsupported format.
-
exception
zlogging._exc.ZeekValueWarning¶ Bases:
zlogging._exc.ZeekWarning,UserWarningDubious Bro/Zeek data value.
-
exception
zlogging._exc.BroDeprecationWarning¶ Bases:
zlogging._exc.ZeekWarning,DeprecationWarningBro is now deprecated, use Zeek instead.