expose custom errors for third party modules