How to raise exception?

A post was split to a new topic: Does dbt have exception handling for DML/DDL code?