An ErrorHandler handles an error occurred during transaction.
| 57 | |
| 58 | // An ErrorHandler handles an error occurred during transaction. |
| 59 | type ErrorHandler interface { |
| 60 | HandleError(err error) |
| 61 | } |
| 62 | |
| 63 | // The ErrorHandlerFunc type is an adapter to ErrorHandler. |
| 64 | type ErrorHandlerFunc func(err error) |