We intercept writes on either the parent or child table and check for the existence of referenced or referring
rows on the child or parent table(s). When those writes fail the remote *CheckWriteHandler returns a failure
to us in the form of an exception. This class is used by the intercept write handlers (*InterceptWriteHandler) to
take the remote exception and translate it into a user-friendly foreign key violation error message.
public void failWrite(java.lang.Exception originalException,
This code looks fragile but it is validated by every single FK IT test method. Breakages in this method would
result in all FK ITs failing. Still, it would be nice if would could simplify this. DB-2952 is for simplifying
how error details are passed between FK CheckWriteHandlers and FK InterceptWriteHandlers.