(error: Error)
| 372 | // If the instance performs any operation exception, it must throw an exception through this function |
| 373 | // trigger failure event |
| 374 | failure(error: Error) { |
| 375 | this.emit("failure", error); |
| 376 | this.println("ERROR", error.message ?? String(error)); |
| 377 | throw error; |
| 378 | } |
| 379 | |
| 380 | // function that must be executed after the instance has been closed |
| 381 | // trigger exit event |