CMC for PHP
  • Namespace
  • Class
  • Tree

Namespaces

  • cmc
    • core
      • ui
    • db
      • mysqli
    • error
    • ui
      • widgets
  • PHP

Classes

  • fatalErrors
  • runtimeErrors

CMC for PHP is a web framework for PHP.
Copyright (c) 2014 by Calmarsoft company http://calmarsoft.com (FRANCE). All rights reserved.
Project information available here.

Class runtimeErrors

Handle the global runtime errors generated by PHP

It can be disabled, transform them as exceptions or generate fatal errors directly

Namespace: cmc\error
Copyright: Copyright (c) Calmarsoft company (FRANCE) (http://calmarsoft.com)
License: GNU General Public License version 3
Version: 0.9
Link: CMC Project
Located at error/runtimeErrors.php

Methods summary

public static
# initialize( )

main init routine

main init routine

checks if the configuration enables global runtime errors handler (@see \cmc\config::errorHandle)

public static
# disable( )

unactivate runtime error handling

unactivate runtime error handling

public static
# setMask( integer $mask )

temporarily sets a new error code mask. Usually used to avoid handling in a specific portion of the program

temporarily sets a new error code mask. Usually used to avoid handling in a specific portion of the program

Parameters

$mask
integer
$mask
public static
# resetMask( )

restore initial error code mask (state before calling setMask)

restore initial error code mask (state before calling setMask)

warning: setMask/resetMask function cannot be imbricated

public static boolean
# HandleError( integer $code, string $string, string $file, integer $line, string $context )

runtimeError handler

runtimeError handler

depending on configuration it can generate log, fatal, ...

Parameters

$code
integer
$code error core
$string
string
$string error text
$file
string
$file error filename
$line
integer
$line error line number
$context
string
$context error context

Returns

boolean
if returns true (if mask matches error code), the error is ignored
public static
# check_for_fatal( )

in shutdown process, check if shutdown is normal or caused by a fatal error

in shutdown process, check if shutdown is normal or caused by a fatal error

public static
# uncaughtException( mixed $e )

Magic methods summary

Constants summary

integer H_Fatal 1
#
integer H_Log 2
#
integer H_Except 4
#
CMC for PHP API documentation generated by ApiGen 2.8.0