Throwing ValidationError from services

Is it ok to throw ValidationError from services or is it intended only to be used internally by SS?

I’ve had a look through the source and docs but can’t find much about it. I guess it’s just a normal exception but wanted to check.

Yeah it’s a normal Exception that’s ok to throw yourself.

Note: it also has a few static method ValidationError.CreateException() helpers that can simplify construction.

1 Like