Free Support Forum - aspose.cloud

ProcessCommand error handling

Hi,


I use aspose.word for cloud to convert documents to pdf with third party storage (google drive) as explained in the samples. It worked fine during my simple tests.

My question is, how can I get notified, when something goes wrong? For example if the file is not found then com.aspose.cloud.common.Utils.ProcessCommand does not throw an exception, but returns an InputStream with the error message. So, how should I know that the InputStream is going to give me an error message and not the converted pdf?

Thx
Peter

Hi Peter,

A new issue to update Utils class to catch such exceptions and show proper error messages has been logged into our issue tracking system as MARKETING-6550. We will let you know as soon as it is updated.

Sorry for the inconvenience.

Best Regards,

Ok then, thx for your quick response!

Hi Peter,


Utils class is updated to throw appropriate message on exception. Please have a look https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Java/blob/master/Aspose.Cloud.SDK/src/com/aspose/cloud/common/Utils.java

Thanks,
Assad Mahmood