pub fn limit_error<T>(constraint: &'static str) -> Result<T>
Convenience function to create a limit error.