Constructor
# new RenderingError(msg)
Specialized error for rendering failures in UI components This error is thrown when the rendering engine encounters an error while attempting to render a UI component or model.
Error thrown when a rendering operation fails
Parameters:
Name | Type | Description |
---|---|---|
msg |
string
|
Error
|
The error message or original error |
Example
// Throwing a rendering error
try {
// Rendering code that might fail
if (!component.canRender()) {
throw new RenderingError('Component cannot be rendered');
}
} catch (error) {
console.error('Rendering failed:', error.message);
}
Extends
- BaseError
Classes
- RenderingError
Initializes the error with a message or original error
- RenderingError
Initializes the error with a message or original error