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

Side by Side Diff: server/static/rpcexplorer/rpc-error.html

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: refactoring and tests Created 4 years, 10 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
OLDNEW
(Empty)
1 <!--
2 Copyright 2016 The Chromium Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style license that can be
4 found in the LICENSE file.
5 -->
6
7 <script>
8 'use strict';
9
10 var rpcExplorer = (function(rpcExplorer) {
11
12 function GrpcError(code, description) {
13 if (code == null) {
14 throw Error('code is not set')
15 }
16 this.name = 'GrpcError';
17 this.code = code;
18 this.description = description;
19 this.message = 'code = ' + code + ' desc = ' + description;
20 }
21 GrpcError.prototype = new Error();
22 rpcExplorer.GrpcError = GrpcError;
23
24 return rpcExplorer;
25 }(rpcExplorer || {}));
26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698