ERROR MAPPER + OBJECT FACTORY