pub fn validate_frame(frame_spec: &Option<WindowFrame>) -> Result<(), String>
Validate a window frame specification, returning an error if invalid.
This checks that frame offsets are non-negative numbers.