T
Terry Michaels
Okay... this might sound weird (contradictory even) but is there a way
in Ruby to create an exception that can be caught at any level above the
point of origin, but /doesn't/ actually interrupt program flow when it
is raised? In a program I am writing, a certain sort of event occurs
that I have to be sure to deal with later on outside of the function,
but I don't want it to interrupt the function because it will leave
object data inconsistent. I probably just need to write another event
class and pop this onto some kind of global queue; but I thought I might
as well ask in case there is something helpful I have overlooked.
in Ruby to create an exception that can be caught at any level above the
point of origin, but /doesn't/ actually interrupt program flow when it
is raised? In a program I am writing, a certain sort of event occurs
that I have to be sure to deal with later on outside of the function,
but I don't want it to interrupt the function because it will leave
object data inconsistent. I probably just need to write another event
class and pop this onto some kind of global queue; but I thought I might
as well ask in case there is something helpful I have overlooked.