• Frans Flippo 20
  • NEWBIE
  • 5 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 5
    Replies
Can anyone tell me if the getHeader(String) method within the HttpResponse class is case sensitive or not? Meaning if I send in a key string value of 'Location', will it retrive a header with a key of 'location'? The documentation does not denote any case sensitivity.
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?