"David Lindauer" <> wrote in message
news:...
>
>
> Computer Whizz wrote:
>
>> "David Lindauer" <> wrote in message
>> news:...
>
>>
>> <snip>
>>
>>
>> Wow - I knew about the exception messages - but didn't know you could
>> catch
>> them...
>> Can you catch <exception> errors too? Or is this just for <stdexcept> ?
>
> you can catch them if you want.... you can really catch anything you
> want.
> catch () is type-based and doesn't really care about specific declarations
> made
> in some header. I think I may have even caught an 'int' in some forgotten
> program
.
>
> David
Along these lines - I just read in accel C++ that errors have different
types.
Say you wanted an outer catch that would catch different types of errors for
multiple reasons - I don't know exactly why - maybe just to save me typing
loads of catches around area's that would give out errors... Is there such a
way to do a catch?
As it seems like you can only catch the errors with the appropriate type.
--
=========
Comp Whizz
=========
(The C++ beginner)