IntlDateFormatter::getErrorCode
datefmt_get_error_code
Lit le code d'erreur de la dernière opération
&reftitle.description;
&style.oop;
public intIntlDateFormatter::getErrorCode
&style.procedural;
intdatefmt_get_error_code
IntlDateFormatterformatter
Lit le code d'erreur de la dernière opération.
&reftitle.parameters;
formatter
La ressource de formateur IntlDateFormatter.
&reftitle.returnvalues;
Le code d'erreur, une des valeurs UErrorCode. La valeur initiale est U_ZERO_ERROR.
&reftitle.examples;
Exemple avec datefmt_get_error_code
]]>
Exemple orienté objet
format();
if (!$str) {
printf(
"Erreur : %s (%d)\n",
$fmt->getErrorMessage(),
$fmt->getErrorCode()
);
}
?>
]]>
&example.outputs;
&reftitle.seealso;
datefmt_get_error_message
intl_get_error_code
intl_is_failure