byoc.NoValueFound
- exception byoc.NoValueFound(message, log)
The default exception raised when no value can be found for a parameter.
BYOC tries to avoid raising or interpreting any exceptions relating to accessing parameter values. Instead, user-provided callbacks are expected to raise if they notice something wrong. This puts the user in control of exception handling and error messages, both good things for a general-purpose framework like this.
NoValueFound
is a bit of an exception to this philosophy. It’s raised by the default picker (first
) in the event that no values were found for an parameter. It’s interpreted by some parts of BYOC (specifically theMethod
andFunc
getters) to mean that an attempt to get a value should be silently skipped. Both of these behaviors can be overridden, but they’re useful defaults.