(
condition: any,
errorStatus: ErrorStatus = 500,
message?: string,
props?: Record<string, unknown>,
)
| 140 | response, |
| 141 | state: Object.assign({}, app.state), |
| 142 | assert( |
| 143 | condition: any, |
| 144 | errorStatus: ErrorStatus = 500, |
| 145 | message?: string, |
| 146 | props?: Record<string, unknown>, |
| 147 | ): asserts condition { |
| 148 | if (condition) { |
| 149 | return; |
| 150 | } |
| 151 | const err = createHttpError(errorStatus, message); |
| 152 | if (props) { |
| 153 | Object.assign(err, props); |
| 154 | } |
| 155 | throw err; |
| 156 | }, |
| 157 | throw( |
| 158 | errorStatus: ErrorStatus, |
| 159 | message?: string, |
no outgoing calls