GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SPOPS::Exception::LDAP(3) User Contributed Perl Documentation SPOPS::Exception::LDAP(3)

SPOPS::Exception::LDAP - SPOPS exception with extra LDAP parameters

 my $iterator = eval { My::LDAPUser->fetch_iterator };
 if ( $@ and $@->isa( 'SPOPS::Exception::LDAP' ) ) {
     print "Failed LDAP execution with: $@\n",
           "Action: ", $@->action, "\n",
           "Code: ", $@->code, "\n",
           "Error Name: ", $@->error_name, "\n",
           "Error Text: ", $@->error_text, "\n",
 }

Same as SPOPS::Exception but we add four new properties:

code ($)

The LDAP code returned by the server.

action ($)

The LDAP action we were trying to execute when the error occurred.

error_name ($)

Name of the error corresponding to "code" as returned by Net::LDAP::Util.

error_text ($)

Text of the error corresponding to "code" as returned by Net::LDAP::Util. This is frequently the same as the error message, but not necessarily.

No extra methods, but you can use a shortcut if you are throwing errors:

 use SPOPS::Exception::LDAP qw( spops_ldap_error );

 ...
 spops_ldap_error "I found an LDAP error with code ", $ldap->code, "...";

None known.

Nothing known.

SPOPS::Exception

Net::LDAP

Net::LDAP::Util

Copyright (c) 2001-2004 intes.net, inc.. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Chris Winters <chris@cwinters.com>
2004-06-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.