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