title: Capture only the error message from validation rule and display in VF page?
body: <p>i have set up a few validation rules and i have a VFpage using this object. I am able to capture the validation exception and display it on the VF page. The issue is that it shows message as </p>
  
  <pre><code>   " Upsert Failed : First exception on row 0: first error;
  
       FIELD_CUSTOM_VALIDATION_EXCEPTION Quantity cannot be empty
  </code></pre>
  
  <p>Is there a way i can just capture the error message in validation Rule  "Quantity cannot be empty" ?</p>
  
  <p>Thanks</p>