new constructor taking ErrorMessage