| 245 | } |
| 246 | |
| 247 | @Controller('/ex', { |
| 248 | use: [(req, res, next) => { |
| 249 | res.locals.data = []; |
| 250 | next(); |
| 251 | }], |
| 252 | exceptions: [ExceptionOne, ExceptionOneAsync] |
| 253 | }) |
| 254 | class ExceptionController extends ApiController { |
| 255 | @HttpGet('/get') |
| 256 | thro(): void { |
| 257 | throw new Error(testError); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | @Controller('/data', { |
| 262 | use: [ |
nothing calls this directly
no test coverage detected