Exceptions & Warnings

Exceptions & warnings.

exception zlogging._exc.ZeekException[source]

Bases: Exception

Base exception.

exception zlogging._exc.ZeekWarning[source]

Bases: Warning

Base warning.

exception zlogging._exc.ParserError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.JSONParserError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.ASCIIPaserError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.WriterError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.JSONWriterError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.ASCIIWriterError(msg, lineno=None, field=None)[source]

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.

Return type

None

exception zlogging._exc.WriterFormatError(msg, lineno=None, field=None)[source]

Bases: zlogging._exc.WriterError, ValueError

Unsupported format.

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

Return type

None

exception zlogging._exc.ParserWarning[source]

Bases: zlogging._exc.ZeekWarning, UserWarning

Warning when parsing logs.

exception zlogging._exc.JSONParserWarning[source]

Bases: zlogging._exc.ParserWarning

Warning when parsing logs in JSON format.

exception zlogging._exc.ASCIIParserWarning[source]

Bases: zlogging._exc.ParserWarning

Warning when parsing logs in ASCII format.

exception zlogging._exc.ZeekTypeError[source]

Bases: zlogging._exc.ZeekException, TypeError

Invalid Bro/Zeek data type.

exception zlogging._exc.ZeekValueError[source]

Bases: zlogging._exc.ZeekException, ValueError

Invalid Bro/Zeek data value.

exception zlogging._exc.ZeekNotImplemented[source]

Bases: zlogging._exc.ZeekException, NotImplementedError

Method not implemented.

exception zlogging._exc.ModelError[source]

Bases: zlogging._exc.ZeekException

Invalid model data.

exception zlogging._exc.ModelTypeError[source]

Bases: zlogging._exc.ModelError, TypeError

Invalid model data type.

exception zlogging._exc.ModelValueError[source]

Bases: zlogging._exc.ModelError, ValueError

Invalid model data value.

exception zlogging._exc.ModelFormatError[source]

Bases: zlogging._exc.ModelError, ValueError

Unsupported format.

exception zlogging._exc.ZeekValueWarning[source]

Bases: zlogging._exc.ZeekWarning, UserWarning

Dubious Bro/Zeek data value.

exception zlogging._exc.BroDeprecationWarning[source]

Bases: zlogging._exc.ZeekWarning, DeprecationWarning

Bro is now deprecated, use Zeek instead.