Source code for render_static.exceptions
"""
Define exceptions thrown by :pypi:`django-render-static`
"""
__all__ = ["URLGenerationFailed", "ReversalLimitHit", "InvalidContext"]
[docs]
class URLGenerationFailed(Exception):
"""
Thrown by :templatetag:`urls_to_js` under any circumstance where URL generation
fails for a specific fully qualified URL name.
"""
[docs]
class ReversalLimitHit(Exception):
"""
Thrown by :templatetag:`urls_to_js` under any circumstance where the configured
maximum number of tries has been hit when attempting to reverse a URL.
"""
class InvalidContext(Exception):
"""
Thrown when a configured context is not resolvable to a dictionary type.
"""