Custom errors on admin UI

Do you have an example to throw custom error message from a model lifecycle?
For example, fields validation in before create?

1 Like