ErrorText (LDAP function): Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (→Usage notes) |
||
Line 15: | Line 15: | ||
==Usage notes== | ==Usage notes== | ||
<ul> | <ul> | ||
<li>The <var>[[ErrorNumber (LDAP | <li>The <var>[[ErrorNumber (LDAP function)|ErrorNumber]]</var> method reports | ||
the error number associated with the ErrorText message or a number | the error number associated with the ErrorText message or a number | ||
of a related error. | of a related error. | ||
Line 28: | Line 28: | ||
but no accompanying diagnostic text for these codes is standardized. | but no accompanying diagnostic text for these codes is standardized. | ||
</ul> | </ul> | ||
==Examples== | ==Examples== | ||
<ul> | <ul> |
Revision as of 23:01, 8 July 2011
Error message of the most recent LDAP error (LDAP class)
This method is a read-only property that reports the error message text from the
last Ldap method for which an error message was returned.
Syntax
%string = ldap:ErrorText
Syntax terms
%msg | A string variable to contain the returned error message text. The %msg value is an empty string if no methods have been called. |
---|---|
%ld | An Ldap object variable. |
Usage notes
- The ErrorNumber method reports the error number associated with the ErrorText message or a number of a related error.
- The ErrorText message will be the same as that indicated by the status return from Ldap methods for problems &ldquo;internal&rdquo; to the client, will be a message from a related error, or will be a message from a server-reported error.
- If an ErrorText message (and number) contain information reported by the server, they may conform to the LDAP RFC, which lists dozens of such server result codes (positive integers) and descriptions, but no accompanying diagnostic text for these codes is standardized.
Examples
- An Ldap Bind call fails and returns a status value of
-5
, which indicates that the bind authorization failed. When the following statement was issued:Print 'Error text is ': ' %ld:ErrorText
The result was:
Error text is LDBIND FTPCONN failed to connect
. ErrorText and returned status provide corroborating information.