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

Side by Side Diff: web/inc/rpc/rpc-error.html

Issue 2570963003: Revert of Rewrite LogDog log viewer app. (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « web/inc/rpc/rpc-call.html ('k') | web/inc/tsconfig.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2016 The LUCI Authors. All rights reserved. 2 Copyright 2016 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <script> 7 <script>
8 'use strict'; 8 'use strict';
9 9
10 var luci = (function(luci) { 10 var luci = (function(luci) {
11 11
12 var rpc = luci.rpc = luci.rpc || {}; 12 var rpc = luci.rpc = luci.rpc || {};
13 13
14 function GrpcError(code, description) { 14 function GrpcError(code, description) {
15 if (code == null) { 15 if (code == null) {
16 throw Error('code is not set') 16 throw Error('code is not set')
17 } 17 }
18 this.name = 'GrpcError'; 18 this.name = 'GrpcError';
19 this.code = code; 19 this.code = code;
20 this.description = description; 20 this.description = description;
21 this.message = 'code = ' + code + ' desc = ' + description; 21 this.message = 'code = ' + code + ' desc = ' + description;
22 } 22 }
23 GrpcError.prototype = Error(); 23 GrpcError.prototype = Error();
24 rpc.GrpcError = GrpcError; 24 rpc.GrpcError = GrpcError;
25 25
26 function HttpError(code, description) {
27 if (code == null) {
28 throw Error('code is not set')
29 }
30 this.name = 'HttpError';
31 this.code = code;
32 this.description = description;
33 this.message = 'code = ' + code + ' desc = ' + description;
34 }
35 HttpError.prototype = Error();
36 rpc.HttpError = HttpError;
37
38 return luci; 26 return luci;
39 }(luci || {})); 27 }(luci || {}));
40 </script> 28 </script>
OLDNEW
« no previous file with comments | « web/inc/rpc/rpc-call.html ('k') | web/inc/tsconfig.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698