@graphty/graphty-element / index / ScreenshotError
Class: ScreenshotError ​
Defined in: graphty-element/src/screenshot/ScreenshotError.ts:48
Custom error class for screenshot and video capture failures. Provides error codes and optional details for debugging.
Extends ​
Error
Constructors ​
Constructor ​
new ScreenshotError(
message,code,details?):ScreenshotError
Defined in: graphty-element/src/screenshot/ScreenshotError.ts:55
Creates a new ScreenshotError
Parameters ​
message ​
string
Human-readable error message
code ​
Error code for programmatic handling
details? ​
unknown
Optional additional error details
Returns ​
ScreenshotError
Overrides ​
Error.constructor
Properties ​
code ​
code:
ScreenshotErrorCode
Defined in: graphty-element/src/screenshot/ScreenshotError.ts:57
Error code for programmatic handling
details? ​
optionaldetails?:unknown
Defined in: graphty-element/src/screenshot/ScreenshotError.ts:58
Optional additional error details