Advanced Guides
Error handling
Common validation errors and how to avoid them
Overview
Decorated Factory fails fast with clear errors when you:
- Supply a negative amount to
.with()or.many().make(). - Call
.set()for a nested path without its parent.with(). - Try to generate an array of
AutoIncrementvalues (unsupported by design).
Examples
Tips
Always .with() nested relations before overriding/excluding inside them, and use non-negative amounts when sizing arrays.