[squeak-dev] Re: LDAPlayer deprecated method

Andreas Raab andreas.raab at gmx.de
Fri Jul 2 19:40:56 UTC 2010


On 7/2/2010 2:31 PM, Schwab,Wilhelm K wrote:
> 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.

Sorry, I don't understand. There is nothing deprecated about #or:or:.

Cheers,
   - Andreas

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




More information about the Squeak-dev mailing list