I use Innovator.ConsumeLicense in my .Net addin. It checks featureNameand returns id if it is correct, otherwise the method throws exception with message:
"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> Aras.Server.Licensing.FeatureNotFoundException: Aras.VplmToArasConnector
at Aras.Server.Licensing.LicenseManager.ConsumeLicense(String featureName) in d:\Builds\Daily\5804\RELS9-4\Innovator\Server\src\Core\Licensing\LicenseManager.vb:line 270
at Aras.Server.Licensing.LicenseManagerWebService.ConsumeLicense(String featureName) in d:\Builds\Daily\5804\RELS9-4\Innovator\Server\src\Core\Licensing\LicenseManagerWebService.vb:line 50
--- End of inner exception stack trace ---"
Is it possible to get correct error message from this exception without parsing this error, getting error code (Aras.Server.Licensing.FeatureNotFoundException) from it, looking string with message for this error code?