Added function ErrorMessage to get private _formatMsg member string in order to display error when catching exception.