Sends an error to the client. @param ex exception
(final Exception ex)
| 179 | * @param ex exception |
| 180 | */ |
| 181 | public void error(final Exception ex) { |
| 182 | Util.debug(ex); |
| 183 | try { |
| 184 | getRemote().sendString(ex.getMessage()); |
| 185 | } catch(final IOException e) { |
| 186 | Util.debug(e); |
| 187 | } |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Runs a function and creates log output. |
no test coverage detected