A better error constructor.