use method Error to compare errors