Net::LDAPxs::Exception - Object handling the exceptions
use Net::LDAPxs; $mesg = $ldap->search( $dn, password => "secret" ); die $mesg->errstr if $mesg->err;
When exception happens, a Net::LDAPxs::Exception object is returned from the methods of a Net::LDAPxs object. It is used for displaying both error codes and error messages sent from LDAP server.
This method is for detecting whether there is an exception.
Method errstr is in charge of displaying the error messages sent from the LDAP server.
errstr
Pan Yu <xiaocong@vip.163.com>
Copyright (C) 2008-2010 by Pan Yu. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::LDAPxs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAPxs
CPAN shell
perl -MCPAN -e shell install Net::LDAPxs
For more information on module installation, please visit the detailed CPAN module installation guide.