Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Issue 570453002: gracefully handle internal exceptions during request (Closed)

Created:
6 years, 3 months ago by danrubel
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, ricow1
Visibility:
Public.

Description

gracefully handle internal exceptions during request - new SERVER_ERROR response code - return SERVER_ERROR response if exception when processing request before request can be sent - send server.error notification if exception occurs anytime while processing request or future work triggered by request BUG=dartbug.com/20893 R=brianwilkerson@google.com, paulberry@google.com Committed: https://code.google.com/p/dart/source/detail?r=40198

Patch Set 1 #

Total comments: 2

Patch Set 2 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -12 lines) Patch
M editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/generated/types/RequestErrorCode.java View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analysis_server/doc/api.html View 1 chunk +6 lines, -0 lines 0 comments Download
M pkg/analysis_server/lib/src/analysis_server.dart View 1 chunk +21 lines, -12 lines 0 comments Download
M pkg/analysis_server/lib/src/generated_protocol.dart View 3 chunks +9 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/protocol_matchers.dart View 2 chunks +2 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/socket_server_test.dart View 2 chunks +53 lines, -0 lines 0 comments Download
M pkg/analysis_server/tool/spec/spec_input.html View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (1 generated)
danrubel
6 years, 3 months ago (2014-09-11 22:33:52 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/570453002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/570453002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode408 pkg/analysis_server/lib/src/analysis_server.dart:408: _sendServerErrorNotification(exception, stackTrace); Does this mean that we are ...
6 years, 3 months ago (2014-09-11 22:48:08 UTC) #3
Paul Berry
I agree with Brian's comment about sending both a notification and a response. With that ...
6 years, 3 months ago (2014-09-11 23:04:37 UTC) #4
danrubel
https://codereview.chromium.org/570453002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart File pkg/analysis_server/lib/src/analysis_server.dart (right): https://codereview.chromium.org/570453002/diff/1/pkg/analysis_server/lib/src/analysis_server.dart#newcode408 pkg/analysis_server/lib/src/analysis_server.dart:408: _sendServerErrorNotification(exception, stackTrace); On 2014/09/11 22:48:07, Brian Wilkerson wrote: > ...
6 years, 3 months ago (2014-09-11 23:32:08 UTC) #5
Brian Wilkerson
The purpose of the notification is for errors that are not attributable to a request. ...
6 years, 3 months ago (2014-09-12 01:13:48 UTC) #6
danrubel
On 2014/09/12 01:13:48, Brian Wilkerson wrote: > The purpose of the notification is for errors ...
6 years, 3 months ago (2014-09-12 04:57:26 UTC) #7
danrubel
Committed patchset #2 (id:20001) manually as 40198 (presubmit successful).
6 years, 3 months ago (2014-09-12 05:01:53 UTC) #8
danrubel
6 years, 3 months ago (2014-09-12 19:20:45 UTC) #9
Message was sent while issue was closed.
On 2014/09/12 04:57:26, danrubel wrote:
> On 2014/09/12 01:13:48, Brian Wilkerson wrote:
> > The purpose of the notification is for errors that are not attributable to a
> > request. If an exception occurs as a result of responding to a request then
> the
> > request should be marked as a failure and no other notification should be
> sent.
> > I think we want to extend RequestError to include an optional stack trace
(or
> > just use the 'data' field) and then only produce one error.
> 
> Sgtm. I'll land this so that we have better error handling now, and make this
> change in a subsequent CL.

https://codereview.chromium.org/569743003

Powered by Google App Engine
This is Rietveld 408576698