confu.exceptions

Classes


ApplyDefaultError

ApplyDefaultError(confu.exceptions.ValidationErrorBase)

Raised when an exception occured during apply_defaults

Methods

__str__

def __str__(self)

Return str(self).


SoftDependencyError

SoftDependencyError(builtins.ImportError)

Raised when a feature requires a dependency that is missing

Methods

__init__

def __init__(self, dep_name)

Initialize self. See help(type(self)) for accurate signature.


ValidationError

ValidationError(confu.exceptions.ValidationErrorBase)

Config validation error

ValidationErrorBase

ValidationErrorBase(builtins.ValueError)

Config validation error interface

Instanced Attributes

These attributes / properties will be available on instances of the class

  • pretty (@property): pretty formatted error message

Methods

__eq__

def __eq__(self, other)

Return self==value.


__init__

def __init__(self, attribute, path, value, reason)

Arguments

  • attribute (Attribute): confu attribute instance
  • path (list): attribute path
  • value (mixed): value that caused the validation error
  • reason (str): human readable reason message for validation error

ValidationWarning

ValidationWarning(confu.exceptions.ValidationErrorBase)

Config validation warning