| 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..d53f645783fba071938097ba2fa46722b306f0d5
|
| --- /dev/null
|
| +++ b/server/static/rpcexplorer/rpc-error.html
|
| @@ -0,0 +1,26 @@
|
| +<!--
|
| + 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 Error('code is not set')
|
| + }
|
| + 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>
|
|
|