You need to sign in to do that
Don't have an account?

trigger error message is not showing in lightning interface
I have created a trigger on attachment to prevent user from uploading .CSV file and showing an error message in classic, but when I switched in lightning interface and testing my trigger it is showing standard error message not showing trigger addError() message.
Please share your experience to resolve my problem
Please share your experience to resolve my problem
@AuraEnabled
public static void apexMethod( )
{
try
{
// Your code here
}
catch (Exception ex)
{
throw new AuraHandledException('Exception occured:\r\n' + ex.getMessage() + '\r\n' + ex.getStackTraceString() + '\r\n');
}
}