previousPEAR_ErrorStack::staticPopCallback (Previous) (Next) PEAR_ErrorStack::staticPushCallbacknext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

PEAR_ErrorStack::staticPush

PEAR_ErrorStack::staticPush() – Versión estática de push()

Synopsis

require_once 'PEAR/ErrorStack.php';

PEAR_Error|null|Exception PEAR_ErrorStack::staticPush ( string $package , int $code , string $level = 'error' , array $params = array() , string $msg = = false , array $repackage = = false , array $backtrace = = false )

Description

Parameter

string $package

Nombre del paquete al que pertenece el error

integer $code

Código de error específico del paquete

string $level

NIvel de error. NO se comprueba

array $params

array asociativo de parámetros de error

string $msg

Mensaje de error, o una porción de este si va a ser generado

array $repackage

Si este error re-empaqueta un error puesto por otro paquete, coloca el array devuelto por pop() en este parámetro

array $backtrace

Parámetro protegido: se usa para pasar el debug_backtrace que debería emplearse para determinar el contexto del presente error

Return value

returns si el modo de compatibilidad está habilitado, un PEAR_Error también será lanzado. Si la clase de Excepción existe, se devuelve una excepción para permitir código como:

<?php
1      throw ($stack->
push
(MY_ERROR_CODE, 'error', array('username' => 'grob')));
?>

Throws

throws no se lanza ninguna excepción

Note

This function should be called statically.

previousPEAR_ErrorStack::staticPopCallback (Previous) (Next) PEAR_ErrorStack::staticPushCallbacknext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.