Created
April 21, 2018 12:09
-
-
Save anilsomasundaran/541cc6475b55eecd0ee5a6eede0321e3 to your computer and use it in GitHub Desktop.
TestApexController.apexc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestApexController { | |
@AuraEnabled | |
public static String callApexControllerMethod ( String message, Boolean showError ) { | |
String counterMessage = 'Response from apex controller - ' + 'Your Message : ' + message; | |
if (showError) { | |
throw new AuraHandledException('Custom Exception from the apex controller'); | |
} | |
return counterMessage; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment