Is it possible to add an extra parameter when trowing an exception?
When i trow an exception I send along the error message but i would also like to send along the name of the field in a extra parameter. Something like
throw new Exception('this is an error message', 'the field');
So when i display the message i can do something like this
show_error($e->getFieldname, $e->getMessage());