|
Even worse is when they don't wrap the original exception in the new exception, but throw away any knowledge of the error.
|
|
|
|
|
I've recently written something similar, except (ok, that's a bad pun) this all is wrapped in a try-catch-log within the main application logic loop, meaning my middle layers often catch low-level exceptions and forward them. I.e. when my HAL throws a "Don't receive any data"-exception, my middle layer catches it and throws it as "Target device sends no data" for the high-level main loop to catch.
That of course is a different situation. You clearly said that's it and nothing additional. Come to think of it, that's another example for "patterns aren't bad, but they can be put to bad use".
|
|
|
|
|
While I agree with everyone's comments I would even go so far as to propose that (in the code you showed) that DoX detect its own error and return a meaningful result that cuold be acted on programmatically.
And to protect against THAT going wrong there would be a try/catch at the outermost level.
|
|
|
|
|
|
A man, a plan, a canal, Panama!
|
|
|
|
|
So disappointing. I was waiting for a palindrome with the name "Suez"...
Software Zen: delete this;
|
|
|
|
|
Current event:
You need to update it to include the sunk boat blocking a one lane section.
|
|
|
|
|
I was going to, but that ship has sailed.
|
|
|
|
|
*Aibohphobia kicks in*
|
|
|
|
|
Straw! No too stupid a fad, I put soot on warts.
|
|
|
|
|
I like this one
Satan oscillate my metallic sonatas
|
|
|
|
|
Madam, I'm Adam.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
|
Visa will now accept "dollar-backed" cryptocurrency.
In other words, it won't fly unless you factor in the dollar ... you know, the "obsolete" currency.
I'd go for a salami-backed cryptocurrency ... which inevitably would still be priced by the dollar.
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
|
|
|
|
|
Unsurprising, as Visa statements are in dollars. If they took payment in anything else, they'd have to deal with the equivalent of forex exposure. But there are "stablecoins" pegged to the dollar, and even the Fed wants to float them, so Visa is just prepping for bigger days ahead.
The dollar isn't obsolete. Nor would seashells be obsolete, if I told you that you had to pay my bill--for very few services rendered--in seashells. And that if you didn't pay with them, some of my "boys" would pay you a little visit. Meanwhile, on the side, I'm creating seashells at will and giving them to my toadies.
But hey, back in the day I'd definitely have gone for a salami-backed crypto too! As long as it was good salami, which most of them aren't. I lived in Dallas for 12 years, and you have no idea how long it took me to find decent salami and rye. There are vast wastelands in the US that have no concept of anything like Dimpflmeier's rye or Piller's salami. And it ain't just TX. NH and CA, same shite.
|
|
|
|
|
Many years ago in a land far east of where I now live, when I was a very small child, my mother would make me "buy" sodas and other snacks from her ":Little Brown Chest®" cooler with sea shells. A soda might be six clam shells (they were plentiful), while a small bag of potato chips might be three conch shells. She was teaching me about nature and economics, and how to count.
__________________
Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now.
© 2009, Rex Hammock
|
|
|
|
|
I found that salami at a Polish market here in Michigan. It seemed pricey, but looked so good. After I ate some I thought I should have bought much more as the market is 50 miles away. It changed my view of salami.
|
|
|
|
|
Phew!! When I saw the word lunacy, I thought this was going to be a political rant....
__________________
Lord, grant me the serenity to accept that there are some things I just can’t keep up with, the determination to keep up with the things I must keep up with, and the wisdom to find a good RSS feed from someone who keeps up with what I’d like to, but just don’t have the damn bandwidth to handle right now.
© 2009, Rex Hammock
|
|
|
|
|
Quote: I'd go for a salami-backed cryptocurrency I don't think so. But bacon backed currency - Now that's a different matter!
Get me coffee and no one gets hurt!
|
|
|
|
|
Bacon and salami seem like different denominations of the same currency. Greasymeatcoin.
|
|
|
|
|
With extremely rare (and short-lived) exceptions, lunacy is always at its maximal value.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Use a fine cheese or wine in place of salami. It is a better hedge against inflation
|
|
|
|
|
A timely topic, but only because of something in Insider News.
Has anyone ever made an easter egg in one of their programs? I always want to do it but never have enough creativity (or time) to actually make one.
Although, I still think I need to create a kill switch in every program I make.
|
|
|
|
|
|
Actually, when I worked at CompuServe, that was documented in the forums. We had our own Easter Eggs and that was part of the relief of putting in long hours.
|
|
|
|