Use a custom error type