Use the decorator textx.textxerror_wrap to wrap non-TextXErrors
Use the decorator textx.textxerror_wrap
in object processors to automatically transform non-TextXErrors to TextXErrors in order to indicate the filename and position of the element being processed. This will avoid a lot of boiler-plate-like code in the the custom exceptions raised in the processors (for example during type checking or applying other constraints).
This feature is only in textX 3.0.0 or later.