ice framework documentation ice doc v1.10.1
Class Ice

Exception

Methods
  • __construct(variable $message, variable $code, variable $previous) : void
    Creates a new exception.
  • getFullTraceAsString(variable $e) : void
    Get the full trace as string.
  • errorHandler(int $code, string $message, string $file, int $line, array $context) : void
    PHP error handler, converts all errors into ErrorExceptions. This handler respects error_reporting settings.
  • handler(variable $e) : void
    Inline exception handler, displays the error message, source of the exception, and the stack trace of the error.
  • shutdownHandler() : void
    Catches errors that are not caught by the error handler.
Methods Details
  • public function __construct(variable $message, variable $code, variable $previous)

    Creates a new exception.
    Translate exception's message using the [I18n] class.
  • public function getFullTraceAsString(variable $e)

    Get the full trace as string.
  • public static function errorHandler(int $code, string $message, string $file, int $line, array $context)

    PHP error handler, converts all errors into ErrorExceptions. This handler respects error_reporting settings.
  • public static function handler(variable $e)

    Inline exception handler, displays the error message, source of the exception, and the stack trace of the error.
  • public static function shutdownHandler()

    Catches errors that are not caught by the error handler.
    E_PARSE, E_ERROR, E_CORE_ERROR, E_USER_ERROR