MessageFormatter::getErrorCode

msgfmt_get_error_code

Get the error code from last operation

Description

Object-oriented style

public int MessageFormatter::getErrorCode()

Procedural style

int msgfmt_get_error_code(MessageFormatter $formatter)

Get the error code from last operation.

Parameters

formatter

The message formatter

Return Values

The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR.

See Also

  • msgfmt_get_error_message
  • intl_get_error_code
  • intl_is_failure