Ejemplo n.º 1
0
 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());
 }
Ejemplo n.º 2
0
 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());
 }