The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::LDAPxs::Exception - Object handling the exceptions

SYNOPSIS

  use Net::LDAPxs;
  
  $mesg = $ldap->search( $dn, password => "secret" );
  die $mesg->errstr if $mesg->err;
  

DESCRIPTION

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.

METHODS

code

This method is for detecting whether there is an exception.

errstr

Method errstr is in charge of displaying the error messages sent from the LDAP server.

AUTHOR

Pan Yu <xiaocong@vip.163.com>

COPYRIGHT AND LICENSE

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.