Exceptions & Warnings¶
Exceptions & warnings.
-
exception
zlogging._exc.
ZeekException
¶ Bases:
Exception
Base exception.
-
exception
zlogging._exc.
ZeekWarning
¶ Bases:
Warning
Base warning.
-
exception
zlogging._exc.
ParserError
(msg, lineno=None, field=None)¶ Bases:
zlogging._exc.ZeekException
,ValueError
Error 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.JSONDecodeError
Error 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.ParserError
Error 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
,TypeError
Error 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.WriterError
Error 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.WriterError
Error 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
,ValueError
Unsupported 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
,UserWarning
Warning when parsing logs.
-
exception
zlogging._exc.
JSONParserWarning
¶ Bases:
zlogging._exc.ParserWarning
Warning when parsing logs in JSON format.
-
exception
zlogging._exc.
ASCIIParserWarning
¶ Bases:
zlogging._exc.ParserWarning
Warning when parsing logs in ASCII format.
-
exception
zlogging._exc.
ZeekTypeError
¶ Bases:
zlogging._exc.ZeekException
,TypeError
Invalid Bro/Zeek data type.
-
exception
zlogging._exc.
ZeekValueError
¶ Bases:
zlogging._exc.ZeekException
,ValueError
Invalid Bro/Zeek data value.
-
exception
zlogging._exc.
ZeekNotImplemented
¶ Bases:
zlogging._exc.ZeekException
,NotImplementedError
Method not implemented.
-
exception
zlogging._exc.
ModelError
¶ Bases:
zlogging._exc.ZeekException
Invalid model data.
-
exception
zlogging._exc.
ModelTypeError
¶ Bases:
zlogging._exc.ModelError
,TypeError
Invalid model data type.
-
exception
zlogging._exc.
ModelValueError
¶ Bases:
zlogging._exc.ModelError
,ValueError
Invalid model data value.
-
exception
zlogging._exc.
ModelFormatError
¶ Bases:
zlogging._exc.ModelError
,ValueError
Unsupported format.
-
exception
zlogging._exc.
ZeekValueWarning
¶ Bases:
zlogging._exc.ZeekWarning
,UserWarning
Dubious Bro/Zeek data value.
-
exception
zlogging._exc.
BroDeprecationWarning
¶ Bases:
zlogging._exc.ZeekWarning
,DeprecationWarning
Bro is now deprecated, use Zeek instead.