- Pods
- AF-IOC 1.2.0
- API
- IocErr
- Src
sourceafIoc::Errs.fan
** As thrown by IoC
const class IocErr : Err {
new make(Str msg := "", Err? cause := null) : super(msg, cause) {}
}
//const class UnknownValueErr : IocErr {
// new make(Str msg, Str valueType, Obj[] values, Err? cause := null) : super(msg + availableValues(valueType, values), cause) {}
//
// Str availableValues(Str valueType, Obj[] values) {
// vals := values.map |Obj? value->Str?| { value?.toStr }.exclude |value| { value == null }.join(", ")
// return " Available $valueType = ${valueType}: ${vals}"
// }
//}
**
** Thrown when an impossible condition occurs. You know when - we've all written comments like:
**
** '// this should never happen...'
**
const class WtfErr : Err {
new make(Str msg, Err? cause := null) : super(msg, cause) {}
}