Extract string in exception message in DynamoCore

@ke-yu I extracted all the exception message in DynamoCore and also Updated DSMsOffice as your feedback.
I believe this kind of exception never bubbles up to the UI, so basically we don't need to do localization for them.