()
| 50 | } |
| 51 | |
| 52 | @Override |
| 53 | public String getMessage() { |
| 54 | // In many cases this exception never makes it to the outside world, thus |
| 55 | // its toString / getMessage methods are never called. When it's called, |
| 56 | // it's typically called only once. So it makes sense to lazily generate |
| 57 | // the message instead of always concatenating the toString representation |
| 58 | // of the RPC, which is easily large because it tends to contain long byte |
| 59 | // arrays. |
| 60 | return super.getMessage() + "\nCaused by RPC: " + failed_rpc; |
| 61 | } |
| 62 | |
| 63 | public HBaseRpc getFailedRpc() { |
| 64 | return failed_rpc; |
no outgoing calls
no test coverage detected