Skip to content

Instantly share code, notes, and snippets.

@asika32764
Created May 20, 2013 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asika32764/5610373 to your computer and use it in GitHub Desktop.
Save asika32764/5610373 to your computer and use it in GitHub Desktop.
public static function raise($level, $code, $msg, $info = null, $backtrace = false)
{
if( !empty(self::$levels[$level]) ){
$level = self::$levels[$level] ;
}else{
$level = self::$levels[E_NOTICE] ;
}
return call_user_func_array( array('ApiError', 'raise'.$level), array($level, $code, $msg, $info) ) ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment