public void error(Class klass, String message) {
   EventBuilder eventBuilder =
       new EventBuilder()
           .withMessage(message)
           .withLevel(Event.Level.ERROR)
           .withLogger(klass.getName());
   raven.runBuilderHelpers(eventBuilder);
   raven.sendEvent(eventBuilder.build());
 }
 public void error(Class klass, String message, Throwable throwable) {
   EventBuilder eventBuilder =
       new EventBuilder()
           .withMessage(message)
           .withLevel(Event.Level.ERROR)
           .withLogger(klass.getName())
           .withSentryInterface(new ExceptionInterface(throwable));
   raven.runBuilderHelpers(eventBuilder);
   raven.sendEvent(eventBuilder.build());
 }