Fernando Rodriguez escribió:
> Hi,
>
> I'm using #withAllSubclassesDo: [ :each | each scheme] on a Url class
> to create an OrderedCollection of schemes.
>
> However, some of the subclasses of Url migth raise an exception
> (either shouldNotImplement or notYetImplemented) when receiving the
> message #scheme.
>
> How do I ignore those 2 specific exceptions and continue with the next
> subclass?
You can't. At least no specifically.
You should do standard exception handling
YourClass withAllSubclassesDo: [ :each | [each scheme] on: Error
do: [:ex | ex return]
]
Best regards.