MT plugin - Display translation errors

Hi,

 

We are developing an MT plugin for Trados Studio 2019.

Is there a way to integrate warning messages for errors that come back from translation requests in the editor?

 

The function we are using to call our MT API is: 

ITranslationProviderLanguageDirection.SearchSegment()


Is there an Exception that should be thrown for errors like this?



As a side note, is there some examples of MT plugins to follow?


Colin