plastic.exceptions — Exception types

Inheritance diagram of plastic.exceptions

exception plastic.exceptions.PlasticError

Bases: exceptions.Exception

All Plastic-related exceptions are derived from this class.

exception plastic.exceptions.RenderError(message=None, description=None)

Bases: plastic.exceptions.PlasticError, werkzeug.exceptions.NotAcceptable

All rendering-related errors are derived from this class. It also extends werkzeug.exceptions.NotAcceptable.

Parameters:
  • message – an optional error message for debugging purpose
  • description – a message that will be showed to user agent

Project Versions

Previous topic

plastic.resourcedir — Resources directory

Next topic

plastic.warnings — Warning categories

This Page