class Defaults {

    public static Function<Exception, RuntimeException> passthrough() {
        return e -> {
            if (e instanceof RuntimeException) {
                return (RuntimeException) e;
            } else {
                return new TDPException(CommonErrorCodes.UNEXPECTED_SERVICE_EXCEPTION, e,
                        build().put("message", e.getMessage()));
            }
        };
    }

    private  Defaults();

}