How to access text of toast message (snack bar) in Katalon studio

I have a requirement where i want to get the error message which is flashed after clicking a button . The error message is flashed in a toast message type alert . The site for which i am using Katalon Studio is made in Angular .
Please help .