title: Python - How to print the message inside ValidationError
body: <p>I would like to know how to print the string written when raising an exception.</p>
  
  <p>For example if I use </p>
  
  <pre><code>raise ValidationError("RANDOM TEXT HERE");
  </code></pre>
  
  <p>How can I retreive "RANDOM TEXT HERE" from within the except section.</p>
  
  <pre><code>try:
    ...
  except ValidationError:
    ...
    // something like Java's ex.getMessage();
    .....
  </code></pre>
  
  <p>Thank you</p>