Set error for all error conditions