public static function errorHandler($errorNumber, $errorString, $errorFile, $errorLine)
{
if (self::stopsExecution($errorNumber)) {
self::exceptionHandler(new ErrorException($errorString, $errorNumber, 0, $errorFile, $errorLine));
} else {
throw new ErrorException($errorString, $errorNumber, 0, $errorFile, $errorLine);
}
}