Change all remaining `trigger_error()` into `throw new Exception()`