MessageFormatter::getErrorCode
msgfmt_get_error_code
Get the error code from last operation
&reftitle.description;
&style.oop;
public
int
MessageFormatter::getErrorCode
&style.procedural;
int
msgfmt_get_error_code
MessageFormatterfmt
Get the error code from last operation.
&reftitle.parameters;
fmt
The message formatter
&reftitle.returnvalues;
The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.
&reftitle.examples;
msgfmt_get_error_code example
]]>
OO example
format(array());
if(!$str) {
echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ")\n";
}
?>
]]>
&example.outputs;
&reftitle.seealso;
msgfmt_get_error_message
intl_get_error_code
intl_is_failure