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

Unified 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: 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
Index: server/static/rpcexplorer/rpc-error.html
diff --git a/server/static/rpcexplorer/rpc-error.html b/server/static/rpcexplorer/rpc-error.html
new file mode 100644
index 0000000000000000000000000000000000000000..fa0338ac5c03403cc50d21737a04556b383da7a9
--- /dev/null
+++ b/server/static/rpcexplorer/rpc-error.html
@@ -0,0 +1,27 @@
+<!--
+ ~ // 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 rpcExplorer = (function(rpcExplorer) {
+
+ function GrpcError(code, description) {
+ if (code == null) {
+ throw new Error("code is not set")
Bons 2016/02/13 17:18:27 mixed double quotes with single quotes
nodir 2016/02/17 02:02:13 Done.
+ }
+ this.name = 'GrpcError';
+ this.code = code;
+ this.description = description;
+ this.message = 'code = ' + code + ' desc = ' + description;
+ }
+ GrpcError.prototype = new Error();
+ rpcExplorer.GrpcError = GrpcError;
+
+ return rpcExplorer;
+}(rpcExplorer || {}));
+</script>

Powered by Google App Engine
This is Rietveld 408576698