php exceptions - can we have multiple throws?

oiil

New Member
\[code\]if ($disponivel === 0) { $razao = $check->cd->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->msg, $codigo); }\[/code\]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?Update:I DO NOT mean to throw the exceptions all at once. Each exception at his time.Thanks in advance,MEM
 
Back
Top