how do you create validation for custom component?
# general
v
how do you create validation for custom component?
l
Unit tests?
v
i mean argument validation
l
Guard conditionals and unit tests. Custom components are written in your preferred language: write code in the constructor that validates parameters as necessary. Throw ResourceError in unrecoverable situations.