| 1 | export default class BaseHandler { |
| 2 | constructor() { |
| 3 | this.handlerName = this.constructor.name |
| 4 | } |
| 5 | |
| 6 | async execute(event, context) { |
| 7 | console.log(`Executing handler ${this.handlerName}`) |
| 8 | return this._process(event, context) |
| 9 | } |
| 10 | |
| 11 | async _process(event, context) { |
| 12 | console.log(event) |
| 13 | console.log(context) |
| 14 | console.log('Remember to overwrite this method if you need to provide custom handling logic.') |
| 15 | } |
| 16 | } |
nothing calls this directly
no outgoing calls
no test coverage detected