Chromium Code Reviews| 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> |