reflex/reflex/utils/exceptions.py

16 lines
390 B
Python

"""Custom Exceptions."""
class InvalidStylePropError(TypeError):
"""Custom Type Error when style props have invalid values."""
pass
class ImmutableStateError(AttributeError):
"""Raised when a background task attempts to modify state outside of context."""
class LockExpiredError(Exception):
"""Raised when the state lock expires while an event is being processed."""