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

Side by Side Diff: pkg/analysis_server/test/integration/protocol_matchers.dart

Issue 569743003: update error handling to send response with stack trace (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 /** 9 /**
10 * Matchers for data types defined in the analysis server API 10 * Matchers for data types defined in the analysis server API
(...skipping 1603 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 "RemoveContentOverlay", { 1614 "RemoveContentOverlay", {
1615 "type": equals("remove") 1615 "type": equals("remove")
1616 })); 1616 }));
1617 1617
1618 /** 1618 /**
1619 * RequestError 1619 * RequestError
1620 * 1620 *
1621 * { 1621 * {
1622 * "code": RequestErrorCode 1622 * "code": RequestErrorCode
1623 * "message": String 1623 * "message": String
1624 * "data": optional object 1624 * "stackTrace": optional String
1625 * } 1625 * }
1626 */ 1626 */
1627 final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject( 1627 final Matcher isRequestError = new LazyMatcher(() => new MatchesJsonObject(
1628 "RequestError", { 1628 "RequestError", {
1629 "code": isRequestErrorCode, 1629 "code": isRequestErrorCode,
1630 "message": isString 1630 "message": isString
1631 }, optionalFields: { 1631 }, optionalFields: {
1632 "data": isObject 1632 "stackTrace": isString
1633 })); 1633 }));
1634 1634
1635 /** 1635 /**
1636 * RequestErrorCode 1636 * RequestErrorCode
1637 * 1637 *
1638 * enum { 1638 * enum {
1639 * GET_ERRORS_INVALID_FILE 1639 * GET_ERRORS_INVALID_FILE
1640 * INVALID_OVERLAY_CHANGE 1640 * INVALID_OVERLAY_CHANGE
1641 * INVALID_PARAMETER 1641 * INVALID_PARAMETER
1642 * INVALID_REQUEST 1642 * INVALID_REQUEST
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 * 1964 *
1965 * { 1965 * {
1966 * "newName": String 1966 * "newName": String
1967 * } 1967 * }
1968 */ 1968 */
1969 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject( 1969 final Matcher isRenameOptions = new LazyMatcher(() => new MatchesJsonObject(
1970 "rename options", { 1970 "rename options", {
1971 "newName": isString 1971 "newName": isString
1972 })); 1972 }));
1973 1973
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/generated_protocol.dart ('k') | pkg/analysis_server/test/protocol_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698