authentik.core.expression.exceptions

authentik core exceptions

 1"""authentik core exceptions"""
 2
 3from authentik.lib.expression.exceptions import ControlFlowException
 4from authentik.lib.sentry import SentryIgnoredException
 5
 6
 7class PropertyMappingExpressionException(SentryIgnoredException):
 8    """Error when a PropertyMapping Exception expression could not be parsed or evaluated."""
 9
10    def __init__(self, exc: Exception, mapping) -> None:
11        super().__init__()
12        self.exc = exc
13        self.mapping = mapping
14
15
16class SkipObjectException(ControlFlowException):
17    """Exception which can be raised in a property mapping to skip syncing an object.
18    Only applies to Property mappings which sync objects, and not on mappings which transitively
19    apply to a single user"""
class PropertyMappingExpressionException(authentik.lib.sentry.SentryIgnoredException):
 8class PropertyMappingExpressionException(SentryIgnoredException):
 9    """Error when a PropertyMapping Exception expression could not be parsed or evaluated."""
10
11    def __init__(self, exc: Exception, mapping) -> None:
12        super().__init__()
13        self.exc = exc
14        self.mapping = mapping

Error when a PropertyMapping Exception expression could not be parsed or evaluated.

PropertyMappingExpressionException(exc: Exception, mapping)
11    def __init__(self, exc: Exception, mapping) -> None:
12        super().__init__()
13        self.exc = exc
14        self.mapping = mapping
exc
mapping
class SkipObjectException(authentik.lib.expression.exceptions.ControlFlowException):
17class SkipObjectException(ControlFlowException):
18    """Exception which can be raised in a property mapping to skip syncing an object.
19    Only applies to Property mappings which sync objects, and not on mappings which transitively
20    apply to a single user"""

Exception which can be raised in a property mapping to skip syncing an object. Only applies to Property mappings which sync objects, and not on mappings which transitively apply to a single user