* Register an error template by ID. * IDs follow the convention: type:identifier:error_id (snake_case) * Examples: * - action:jump:label_not_found * - component:language_selection_screen:metadata_not_found * - engine:translation:key_not_found
(id: string, template: ErrorTemplate)
| 78 | * - engine:translation:key_not_found |
| 79 | */ |
| 80 | static register (id: string, template: ErrorTemplate): void { |
| 81 | FancyError.registry.set(id, template); |
| 82 | } |
| 83 | |
| 84 | /** |
| 85 | * Interpolate placeholders in a string with context values. |
no test coverage detected