1
0
mirror of https://github.com/php/doc-es.git synced 2026-04-27 00:58:15 +02:00
Files
archived-doc-es/reference/cubrid/functions/cubrid-error-msg.xml
T
Pedro Antonio Gil Rodríguez f309524892 Updated to the most recent version
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@330721 c90b9560-bf6c-de11-be94-00142212c4b1
2013-07-01 10:32:52 +00:00

101 lines
2.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 6fbb2db68cc01569ddb70a2c3fdaa8b532ec7beb Maintainer: seros Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.cubrid-error-msg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>cubrid_error_msg</refname>
<refpurpose>Obtener el último mensaje de error de la llamada a la función más reciente</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>cubrid_error_msg</methodname>
<void />
</methodsynopsis>
<para>
La función <function>cubrid_error_msg</function> se usa para obtener el
mensaje de error que ocurrió durante la utilización de la API CUBRID. Normalmente obtiene
el mensaje de error cuando la API devuelve false como valor de retorno.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
El mensaje de error que ocurrió.
</para>
<para />
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>Ejemplo de <function>cubrid_error_msg</function></title>
<programlisting role="php">
<![CDATA[
<?php
$conn = cubrid_connect("localhost", 33000, "demodb");
if (!@cubrid_schema($conn, 100000)) {
printf("Dispositivo del error: %d\nCódigo de error: %d\nMensaje de error: %s\n",
cubrid_error_code_facility(), cubrid_error_code(), cubrid_error_msg());
cubrid_disconnect($conn);
exit;
}
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Dispositivo del error: 2
Código de error: -10015
Mensaje de error: Invalid T_CCI_SCH_TYPE value
]]>
</screen>
</example>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>cubrid_error_code</function></member>
<member><function>cubrid_error_code_facility</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->