Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!-- | |
| 2 ~ // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 3 ~ // Use of this source code is governed by a BSD-style license that can be | |
| 4 ~ // found in the LICENSE file. | |
| 5 ~ | |
| 6 --> | |
| 7 | |
| 8 <script> | |
| 9 'use strict'; | |
| 10 | |
| 11 var rpcExplorer = (function(rpcExplorer) { | |
| 12 | |
| 13 function GrpcError(code, description) { | |
| 14 if (code == null) { | |
| 15 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.
| |
| 16 } | |
| 17 this.name = 'GrpcError'; | |
| 18 this.code = code; | |
| 19 this.description = description; | |
| 20 this.message = 'code = ' + code + ' desc = ' + description; | |
| 21 } | |
| 22 GrpcError.prototype = new Error(); | |
| 23 rpcExplorer.GrpcError = GrpcError; | |
| 24 | |
| 25 return rpcExplorer; | |
| 26 }(rpcExplorer || {})); | |
| 27 </script> | |
| OLD | NEW |