(code: T)
| 188 | } |
| 189 | |
| 190 | export function formatRuntimeErrorCode<T extends number = RuntimeErrorCode>(code: T): string { |
| 191 | // Error code might be a negative number, which is a special marker that instructs the logic to |
| 192 | // generate a link to the error details page on angular.io. |
| 193 | // We also prepend `0` to non-compile-time errors. |
| 194 | return `NG0${Math.abs(code)}`; |
| 195 | } |
| 196 | |
| 197 | /** |
| 198 | * Called to format a runtime error. |
no outgoing calls
no test coverage detected