title: php exceptions - can we have multiple throws?
body: <pre><code>    if ($disponivel === 0)
      {
          $razao = $check-&gt;cd-&gt;reason;
          $mensagem = "the domain isn't available. Reason: ".$razao;
      }
      elseif($disponivel === 1)
      {
          $mensagem = "the domain doesn't exist - free to register.";
      }
  
      return $mensagem;
  }
  else
  {
      throw new EppCommandsExceptions('Domain isn't supported - '.$result-&gt;msg, $codigo);
  }
  </code></pre>
  
  <p>Do you see those $mensagem strings? They are also error messages and my question is, instead of having $mensagem displaying some error messages, can we use several throw exceptions instead?</p>
  
  <p>Update:
  I DO NOT mean to throw the exceptions all at once. Each exception at his time.</p>
  
  <p>Thanks in advance,
  MEM</p>