Skip to content

xtr_web_profiler.exception

Everything this library raises, under :class:WebProfilerError.

InvalidArgumentError

Bases: WebProfilerError, ValueError

A configuration value the web profiler would misread.

Also a :class:ValueError.

TemplateNotFoundError

TemplateNotFoundError(collector: str, template: str)

Bases: WebProfilerError, LookupError

A data collector names a panel template that does not exist.

The template is named on the collector's tag as "@<import package>/<path under its templates folder>". Also a :class:LookupError.

Attributes:

  • collector (str) –

    The collector whose panel could not be shown.

  • template (str) –

    The template its tag names.

Record the collector and the template it names.

WebProfilerError

Bases: Exception

Base class for every error raised by this library.

Every subclass carries what went wrong as typed attributes and composes its own message from them.