Пример #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());
 }
Пример #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());
 }