• Frans Flippo 20
  • 0 Points
  • Member since 2021

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
I am getting this error while using vf component attribute for passing custom setting name, however i am not getting any error if I am hard coding values instead of component attribute, and it is showing me other custom settings field value.  
How do I throw an exception? The developers guide helpfully tells me to use the throw statement and provide it with an exception object but then unhelpfully provides the following example:
throw <exceptionObject>;
I tried:
throw new Exception('error message');
but get the error - type cannot be constructed: Exception.
I did find something that said I could not construct any of the system exceptions so then what excepetion object can I provide to the throw statement?