MCPcopy Create free account
hub / github.com/ParallelTask/dinoloop / ExceptionController

Class ExceptionController

tests/integration/dinowares.flow.spec.ts:247–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

ControllerFunction · 0.85
HttpGetFunction · 0.85
nextFunction · 0.50

Tested by

no test coverage detected