Back to index

php5  5.3.10
Functions
common_api.php File Reference

Go to the source code of this file.

Functions

 intl_get_error_code ()
 Handling of errors occured in static methods when there's no object to get error code/message from.
 intl_get_error_message ()
 Get description of the last error.
 intl_is_failure ($code)
 Check whether the given error code indicates failure.
 intl_error_name ($code)
 Get symbolic name for a given error code.

Function Documentation

intl_error_name ( code)

Get symbolic name for a given error code.

The returned string will be the same as the name of the error code constant.

Parameters:
int$codeICU error code.
Returns:
string Error code name.

Definition at line 56 of file common_api.php.

{}

Here is the caller graph for this function:

Handling of errors occured in static methods when there's no object to get error code/message from.

Example #1: $coll = collator_create( '<bad_param>' ); if( !$coll ) handle_error( intl_get_error_code() );

Example #2: if( Collator::getAvailableLocales() === false ) show_error( intl_get_error_message() ); Get the last error code.

Returns:
int Error code returned by the last API function call.

Definition at line 27 of file common_api.php.

{}

Here is the caller graph for this function:

Get description of the last error.

Returns:
string Description of an error occured in the last API function call.

Definition at line 35 of file common_api.php.

{}

Here is the caller graph for this function:

intl_is_failure ( code)

Check whether the given error code indicates failure.

Parameters:
int$codeICU error code.
Returns:
bool true if it the code indicates some failure, and false in case of success or a warning.

Definition at line 45 of file common_api.php.

{}

Here is the caller graph for this function: