C
Casimir P
Just had an vague idea about generic java "try-catch" converted to ruby-
world I would like some feedback on.
I'm building a "microscopic CMS" system to learn more ruby, and of course
it would be good to implement proper error catching system. Try-catch is
what java uses.
Now the vague idea was to create one error catching function, and to
throw all things that might fail (say loading a file) "through" that
function. Passed as a code block? I am not sure, it keeps slipping from
me.
What do you think?
world I would like some feedback on.
I'm building a "microscopic CMS" system to learn more ruby, and of course
it would be good to implement proper error catching system. Try-catch is
what java uses.
Now the vague idea was to create one error catching function, and to
throw all things that might fail (say loading a file) "through" that
function. Passed as a code block? I am not sure, it keeps slipping from
me.
What do you think?