(error: string | Error)
| 273 | * @param error The error to be handled. |
| 274 | */ |
| 275 | export function error(error: string | Error) { |
| 276 | if (!_errorHandler) { |
| 277 | return; |
| 278 | } |
| 279 | |
| 280 | if (typeof error === 'string') { |
| 281 | error = new Error(error); |
| 282 | } |
| 283 | |
| 284 | _errorHandler.handlerError(error); |
| 285 | } |
| 286 | } |
nothing calls this directly
no test coverage detected