Source code for lucidity.error

# :coding: utf-8
# :copyright: Copyright (c) 2013 Martin Pengelly-Phillips
# :license: See LICENSE.txt.

'''Custom error classes.'''


[docs]class ParseError(Exception): '''Raise when a template is unable to parse a path.'''
[docs]class FormatError(Exception): '''Raise when a template is unable to format data into a path.'''
[docs]class NotFound(Exception): '''Raise when an item cannot be found.'''
[docs]class ResolveError(Exception): '''Raise when a template reference can not be resolved.'''