(message)
| 1566 | } |
| 1567 | |
| 1568 | function createFatalError(message) { |
| 1569 | var error = new Error(message); |
| 1570 | // In addition to being converted to a rejection, these errors also need to be passed to |
| 1571 | // the $exceptionHandler and be rethrown (so that the test fails). |
| 1572 | error.$$passToExceptionHandler = true; |
| 1573 | return error; |
| 1574 | } |
| 1575 | |
| 1576 | if (expectation && expectation.match(method, url)) { |
| 1577 | if (!expectation.matchData(data)) { |