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

Unified Diff: server/static/rpc/rpc-error.html

Issue 1695893004: RPC Explorer (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@rpcepxlorer-deps
Patch Set: 80 chars 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « server/static/rpc/rpc-code.html ('k') | server/static/rpc/test/rpc-client.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/static/rpc/rpc-error.html
diff --git a/server/static/rpc/rpc-error.html b/server/static/rpc/rpc-error.html
new file mode 100644
index 0000000000000000000000000000000000000000..fd9aa866692531cd8806bc7b56c259c2e1d7d555
--- /dev/null
+++ b/server/static/rpc/rpc-error.html
@@ -0,0 +1,28 @@
+<!--
+ Copyright 2016 The Chromium Authors. All rights reserved.
+ Use of this source code is governed by a BSD-style license that can be
+ found in the LICENSE file.
+ -->
+
+<script>
+ 'use strict';
+
+ var luci = (function(luci) {
+
+ var rpc = luci.rpc = luci.rpc || {};
+
+ function GrpcError(code, description) {
+ if (code == null) {
+ throw Error('code is not set')
+ }
+ this.name = 'GrpcError';
+ this.code = code;
+ this.description = description;
+ this.message = 'code = ' + code + ' desc = ' + description;
+ }
+ GrpcError.prototype = Error();
+ rpc.GrpcError = GrpcError;
+
+ return luci;
+ }(luci || {}));
+</script>
« no previous file with comments | « server/static/rpc/rpc-code.html ('k') | server/static/rpc/test/rpc-client.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698