(error)
| 44 | try { this._handleRequest(request, response, done, settings); } |
| 45 | catch (error) { done(error); } |
| 46 | function done(error) { |
| 47 | if (self) { |
| 48 | // Send a 406 response if no suitable view was found |
| 49 | if (error instanceof ViewCollection.ViewCollectionError) |
| 50 | return self._handleNotAcceptable(request, response, next); |
| 51 | self = null; |
| 52 | next(error); |
| 53 | } |
| 54 | } |
| 55 | }; |
| 56 | |
| 57 | // Tries to process the HTTP request in an implementation-specific way |
no outgoing calls
no test coverage detected