Welcome to WordPress. This is your first post. Edit or delete it, then start writing!
Try Catch
|
1 2 3 4 5 6 7 8 9 10 |
@AuraEnabled public static String methodName(String recordId, String objectName) { try { // return null; } catch (Exception e) { System.debug(e.getMessage() + ‘ -> ‘ + e.getStackTraceString()); throw new AuraHandledException(e.getMessage()); } } |
Leave a Reply