Scenario: I have 1 APEX class, in which I have inner class extending exception, as can be seen below:
public with sharing class ClassA{
PUBLIC/PRIVATE class ClassBException extends ClassCException {}
}
This ClassBException is only used for ClassA, and ClassA will in turn be used in LWC.
Question: The access modifier where it is in all caps in above code (PUBLIC/PRIVATE) should be public or private?
Note: this developer guide only talks about method or variable but what about the inner classes especially the exception classes.