PHP/Statement/throw
Версия от 10:37, 26 мая 2010; (обсуждение)
Throwing an Exception
<?php
class ThrowExample {
public function makeError() {
throw new Exception("This is an example Exception");
}
}
$inst = new ThrowExample();
$inst->makeError();
?>