Example #1
0
 def _on_internal_error(self, failure, request):
     log.err()
     # failure.printTraceback()
     sentry.capture(failure)
     # only propagate str value to avoid exposing internal details
     ex = InternalError(str(failure.value))
     return self._write_error(request, 500, ex)
Example #2
0
 def _on_internal_error(self, failure, request):
     log.err()
     # failure.printTraceback()
     sentry.capture(failure)
     # only propagate str value to avoid exposing internal details
     ex = InternalError(str(failure.value))
     return self._write_error(request, 500, ex)
Example #3
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
Example #4
0
 def _internalError(self, failure, request):
     request.setResponseCode(500)
     request.write(failure.getErrorMessage())
     log.err()
     sentry.capture(failure)
Example #5
0
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())
Example #6
0
 def _internalError(self, failure, request):
     log.err()
     sentry.capture(failure)
     return self._writeError(request, 500, failure.getErrorMessage())