class ProviderBinder implements Providers {

    @SuppressWarnings({"unchecked"})
    public void addExceptionMapper(Class<? extends ExceptionMapper> exceptionMapperClass) {
        try {
            addExceptionMapper(new PerRequestObjectFactory(new ProviderDescriptorImpl(exceptionMapperClass)));
        } catch (Exception e) {
            LOG.error(String.format("Failed add ExceptionMapper %s. %s", exceptionMapperClass.getName(), e.getMessage()), e);
        }
    }

    protected  ProviderBinder();

}