pub fn create_sc_error(message: &str) -> SCErrorExpand description
Helper function to create an error (for backward compatibility)
Note: Prefer using SCError::new or specific constructors.
ยงExamples
use screencapturekit::utils::error::create_sc_error;
let err = create_sc_error("Something failed");
assert!(err.to_string().contains("Something failed"));