php man page for intlcal_get_error_message

Query: intlcal_get_error_message

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

INTLCAL_GET_ERROR_MESSAGE(3)						 1					      INTLCAL_GET_ERROR_MESSAGE(3)

IntlCalendar::getErrorMessage - Get last error message on the object

       Object oriented style (method):

SYNOPSIS
public string IntlCalendar::getErrorMessage (void )
DESCRIPTION
Procedural style: string intlcal_get_error_message (IntlCalendar $calendar) Returns the error message (if any) associated with the error reported by IntlCalendar.getErrorCode(3) or intlcal_get_error_code(3). If there is no associated error message, only the string representation of the name of the error constant will be returned. Otherwise, the message also includes a message set on the side of the PHP binding.
PARAMETERS
o $calendar - The calendar object, on the procedural style interface.
RETURN VALUES
The error message associated with last error that occurred in a function call on this object, or a string indicating the non-existance of an error.
EXAMPLES
Example #1 intlcal_get_error_message(3) <?php $cal = IntlCalendar::createInstance('UTC', 'en_US'); var_dump($cal->getErrorMessage()); $cal->getWeekendTransition(IntlCalendar::DOW_WEDNESDAY); var_dump($cal->getErrorMessage()); The above example will output: string(12) "U_ZERO_ERROR" string(82) "intlcal_get_weekend_transition: Error calling ICU method: U_ILLEGAL_ARGUMENT_ERROR" PHP Documentation Group INTLCAL_GET_ERROR_MESSAGE(3)
Related Man Pages
datefmt_get_calendar_object(3) - php
intlcalendar.geterrorcode(3) - php
intlcal_get_error_code(3) - php
intlcalendar.getfirstdayofweek(3) - php
intlcalendar.getminimaldaysinfirstweek(3) - php
Similar Topics in the Unix Linux Community
cal
error message
message and method