Added constructor with error code
Added constructor with error code
Throws MessagingException with relevant error code