Skip to main content
7 events
when toggle format what by license comment
Nov 9, 2016 at 16:41 comment added Mohith Shrivastava If that answers be sure to mark answered so it helps others
Nov 9, 2016 at 16:41 vote accept Ian Tunbridge
Nov 9, 2016 at 16:41 comment added Ian Tunbridge Oh, whoops. I didn't pay close enough attention to see that the decoration was on the fields and not the class. Thank you!
Nov 9, 2016 at 16:19 comment added Mohith Shrivastava You do not need new class for exception throwing and you can create a new class named RequestTotals as I have shown and mark all the properties as @auraenabled .
Nov 9, 2016 at 16:12 comment added Ian Tunbridge I'm not able to make the changes you suggest. First, the developer console shows this error when I try to decorate these classes with @AuraEnabled : RequestTotals: Types cannot be marked as AuraEnabled Second, when I tried to create a new APEX Class for the NullValueNotAllowedException, I get this error: INVALID_FIELD_FOR_INSERT_UPDATE NullValueNotAllowedException: Exception class must extend another Exceptoin class
Nov 9, 2016 at 16:04 comment added Mohith Shrivastava The class you need is RequestTotals and not NullValueNotAllowedException
Nov 9, 2016 at 0:26 history answered Mohith Shrivastava CC BY-SA 3.0