Hi,
Would it be correct to raise an exception to indicate a failed check? I perform type-casts (that throw already) and other checks that would benefit from attaching a description to the client error.
Thank you,
I have a `DOMAIN` on `JSONB`. I need to verify the shape of the JSON, so I have a check _expression_ written in PL/pgSQL. The docs say
> Each constraint must be an _expression_ producing a Boolean result
Would it be correct to raise an exception to indicate a failed check? I perform type-casts (that throw already) and other checks that would benefit from attaching a description to the client error.
Thank you,
Logan