| 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>
|
|
|