class Pike\PikeException
Piken ainoa poikkeusluokka.
Synopsis
class PikeException extends RuntimeException {
/* Vakiot */
const FAILED_DB_OP = 101010 ;
const FAILED_FS_OP = 101011 ;
const BAD_INPUT = 101012 ;
const INEFFECTUAL_DB_OP = 101013 ;
const ERROR_EXCEPTION = 101014 ;
}
Esimerkit
try {
throw new PikeException(PikeException::BAD_INPUT);
} catch (PikeException $e) {
$e->getCode() === PikeException::BAD_INPUT; // true
}