Ejemplo n.º 1
0
function error($message, $area = MSG_AREA_CONTEXT)
{
    FASE::alert($area, $message);
    die;
}
Ejemplo n.º 2
0
 public static function error_handler($level, $str, $file, $line)
 {
     switch ($level) {
         case E_USER_NOTICE:
             FASE::notify(MSG_AREA_CONTEXT, $str, "{$file}:{$line}");
             break;
         case E_USER_ERROR:
             FASE::alert(MSG_AREA_CONTEXT, $str, "{$file}:{$line}");
             break;
         case E_USER_WARNING:
         default:
             FASE::warn(MSG_AREA_CONTEXT, $str, "{$file}:{$line}");
             break;
     }
 }