create_sc_error

Function create_sc_error 

Source
pub fn create_sc_error(message: &str) -> SCError
Expand 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"));