LDAPlayer deprecated method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

LDAPlayer deprecated method

Schwab,Wilhelm K
Andreas,

I ran into a warning about LDAPResult>>checkForExceptions sending the now deprecated #or:or:.  It was easy to silence (comment out the warning), but that won't fix the problem.

Maybe (untested):

checkForExceptions
     (  #( 0 5 6 ) includes:resultCode )
                ifFalse: [
                        | ex |
                        ex := LDAPException newWithCode: resultCode.
                        ex signal: (errorMessage ifEmpty:[ex messageText]) ]

Bill


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project