Show Error Message from Data source plugin in angular

I was trying to show the error message from data source plugin using Angular Legacy data source plugin

Please suggest me which way I should show the error message to the panel. once i get the exception in datasource.