MT plugin - Display translation errors

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?