Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

msgfmt_get_error_message(3) [php man page]

MSGFMT_GET_ERROR_MESSAGE(3)						 1					       MSGFMT_GET_ERROR_MESSAGE(3)

MessageFormatter::getErrorMessage - Get the error text from the last operation

	Object oriented style

SYNOPSIS
public string MessageFormatter::getErrorMessage (void ) DESCRIPTION
Procedural style string msgfmt_get_error_message (MessageFormatter $fmt) Get the error text from the last operation. PARAMETERS
o $fmt - The message formatter RETURN VALUES
Description of the last error. EXAMPLES
Example #1 msgfmt_get_error_message(3) example <?php $fmt = msgfmt_create("en_US", "{0, number} monkeys on {1, number} trees"); $str = msgfmt_format($fmt, array()); if(!$str) { echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ") "; } ?> Example #2 OO example <?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ") "; } ?> The above example will output: ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1) SEE ALSO
msgfmt_get_error_code(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group MSGFMT_GET_ERROR_MESSAGE(3)

Check Out this Related Man Page

MSGFMT_GET_ERROR_CODE(3)						 1						  MSGFMT_GET_ERROR_CODE(3)

MessageFormatter::getErrorCode - Get the error code from last operation

	Object oriented style

SYNOPSIS
public int MessageFormatter::getErrorCode (void ) DESCRIPTION
Procedural style int msgfmt_get_error_code (MessageFormatter $fmt) Get the error code from last operation. PARAMETERS
o $fmt - The message formatter RETURN VALUES
The error code, one of UErrorCode values. Initial value is U_ZERO_ERROR. EXAMPLES
Example #1 msgfmt_get_error_code(3) example <?php $fmt = msgfmt_create("en_US", "{0, number} monkeys on {1, number} trees"); $str = msgfmt_format($fmt, array()); if(!$str) { echo "ERROR: ".msgfmt_get_error_message($fmt) . " (" . msgfmt_get_error_code($fmt) . ") "; } ?> Example #2 OO example <?php $fmt = new MessageFormatter("en_US", "{0, number} monkeys on {1, number} trees"); $str = $fmt->format(array()); if(!$str) { echo "ERROR: ".$fmt->getErrorMessage() . " (" . $fmt->getErrorCode() . ") "; } ?> The above example will output: ERROR: msgfmt_format: not enough parameters: U_ILLEGAL_ARGUMENT_ERROR (1) SEE ALSO
msgfmt_get_error_message(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group MSGFMT_GET_ERROR_CODE(3)
Man Page

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

errpt

Hello World, When I issue the errpt command 1581762B 0826133303 T H hdisk1 DISK OPERATION ERROR C14C511C 0826133303 T H scsi0 ADAPTER ERROR I found these two unusual errors, wat exactly do these mean ? Im on an aix box. Thanks (3 Replies)
Discussion started by: cubicle^dweller
3 Replies

2. UNIX for Advanced & Expert Users

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (0 Replies)
Discussion started by: mcastill66
0 Replies

3. AIX

Adapter Errors and Link Errors

$ errpt | more IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION 3074FEB7 0802050205 T H fscsi1 ADAPTER ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR B8113DD1 0802050205 T H fcs1 LINK ERROR 3074FEB7 0802050205 T H fscsi0 ADAPTER ERROR B8113DD1 ... (2 Replies)
Discussion started by: mcastill66
2 Replies

4. AIX

AIX 5.3 errpt full of message: DISK OPERATION ERROR

Hi All, Can anyone explain me the meanning of the following errors: LABEL: SC_DISK_ERR2 IDENTIFIER: B6267342 Description DISK OPERATION ERROR Probable Causes DASD DEVICE Failure Causes DISK DRIVE DISK DRIVE ELECTRONICS Recommended Actions PERFORM PROBLEM DETERMINATION... (1 Reply)
Discussion started by: gianlu
1 Replies

5. Shell Programming and Scripting

shell function help

SUN os KSH ERROR_CHK () { ERR_DATA="$ABC" if `echo "$ABC" | egrep 'PLS|ERROR|ORA'` ; then echo "Failed: Can't execute procedure ${PRG_NAME} ERROR found " return 1 else echo "Info : ${PRG_NAME} done" fi } my function fails iwth below message "ERROR: not found" I think i... (0 Replies)
Discussion started by: Amresh Dubey
0 Replies

6. Shell Programming and Scripting

Script help needed

I have a code given below... ERROR=`grep "Job Status" ${LOG_FILE}` ERROR=${ERROR##*\(} ERROR=${ERROR%%\)*} if then echo "The job completed successfully" EXIT_STATUS=0 else echo "The job failed" EXIT_STATUS=1 fi can anybody tell me what is ERROR=${ERROR##*\(}... (1 Reply)
Discussion started by: Sagarddd
1 Replies

7. UNIX for Advanced & Expert Users

fmt command

Hello, I have file which needs to be splitted into multiple line with each line holding 80 bytes. Im using the fmt command as fmt -w 80 {filename} > {out filename} but getting the error fmt: Too many characters in a word. Thanks Use code tags, ty. (7 Replies)
Discussion started by: atlantis
7 Replies

8. Virtualization and Cloud Computing

ICFB ERROR

Hi All, We are using Citrix MFU 4. When users try to launch ICFB (Cadence)tool, They get the below error: Using Cadence version ic5141_isr141 *ERROR* Failed to find either 24-bit TrueColor or 8-bit PseudoColor Visual. *WARNING* Failed to find either 24-bit TrueColor or 8-pbit PseudoColor... (0 Replies)
Discussion started by: mspatil0037
0 Replies

9. Shell Programming and Scripting

Error line number

Hi I have a error message like this. ERROR at line 1: ERROR at line 15: ERROR at line 49: I want to grep the number from the ERROR line. Can some one help here. Thanks, Rami Reddy. (5 Replies)
Discussion started by: Rami Reddy
5 Replies

10. AIX

Receiving: 4B436A3D 0313233216 T H fscsi0 LINK ERROR

Hey All, I'm receiving the following error off of a Power5 9133-55A after I write 2-5 files to the LUN: 4B436A3D 0313233216 T H fscsi0 LINK ERROR I can create the filesystem, volume groups etc etc. All goes well until there is sustained activity to the LUN then the above error... (23 Replies)
Discussion started by: Devyn
23 Replies