Simplify error-handling wrapper API