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 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?