IntlCalendar::getErrorMessage
intlcal_get_error_message
Get last error message on the object
Beschreibung
Objektorientierter Stil (method):
public string IntlCalendar::getErrorMessage
( void
)
string intlcal_get_error_message
( IntlCalendar $calendar
)
Parameter-Liste
-
calendar
-
The calendar object, on the procedural style interface.
Rückgabewerte
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.
Beispiele
Beispiel #1 IntlCalendar::getErrorMessage
<?php
$cal = IntlCalendar::createInstance('UTC', 'en_US');
var_dump($cal->getErrorMessage());
$cal->getWeekendTransition(IntlCalendar::DOW_WEDNESDAY);
var_dump($cal->getErrorMessage());
Das oben gezeigte Beispiel erzeugt folgende
Ausgabe:
string(12) "U_ZERO_ERROR"
string(82) "intlcal_get_weekend_transition: Error calling ICU method: U_ILLEGAL_ARGUMENT_ERROR"