C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

catch(...)

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German)
View previous topic :: View next topic  
Author Message
Maximilian Hrabowski
Guest





PostPosted: Wed Dec 22, 2004 7:29 pm    Post subject: catch(...) Reply with quote



Hallo,

ist es irgendwie möglich die typeid einer mit catch(...) eingefangenen
exception auszugeben?

Konkret:

Irgendwo in einer Server-Anwendung:
{
try
{
/* rufe u.U. böses plugin auf */
}
catch( Server::Exception& e )
{
log << "Fehler: " << e.message();
}
catch( std::exception& e )
{
log << "Unbekannte Ausnahme: " << e.what();
}
catch(...)
{
// hier würde ich jetzt gerne zumindest die typeid() der geschmissenen
// exception ausgeben. Wie?
}
}

Grüße,
Maxim

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de
Back to top
Philipp Unterbrunner
Guest





PostPosted: Thu Dec 23, 2004 1:43 am    Post subject: Re: catch(...) Reply with quote



"Maximilian Hrabowski" schrieb:
Quote:
Hallo,

ist es irgendwie möglich die typeid einer mit catch(...) eingefangenen
exception auszugeben?

Kurze Antwort: Nein.

Lange Antwort: Nein. Du kannst lediglich herausfinden *dass* eine
Exception geworfen wurde. Es gibt keine (standardkonforme) Möglichkeit die
Adresse des geworfenen Objekts herauszufinden und einen dynamic_cast oder
typeid anzuwenden. Du kannst das Objekt aber immerhin mit throw weiterwerfen
und hoffen dass ein umschliessender catch Handler den Typ kennt.

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Stefan Reuther
Guest





PostPosted: Thu Dec 23, 2004 10:41 am    Post subject: Re: catch(...) Reply with quote



Maximilian Hrabowski wrote:
Quote:
ist es irgendwie möglich die typeid einer mit catch(...) eingefangenen
exception auszugeben?

Nein.

Dazu musst du alle Exceptions von einer Basisklasse ableiten (z.B.
std::exception) und die fangen.

Mein Mozilla hat übrigens mitgedacht und dein Posting in einen Thread
vom Januar einsortiert, in dem das gleiche Thema schon mal dran war.
<bte7m7$667en$1 (AT) ID-3551 (DOT) news.uni-berlin.de>


Stefan

--
de.comp.lang.iso-c++ - Moderation: mailto:voyager+mod (AT) bud (DOT) prima.de
FAQ: http://www.voyager.prima.de/cpp/ mailto:voyager+send-faq (AT) bud (DOT) prima.de

Back to top
Philipp Unterbrunner
Guest





PostPosted: Sat Dec 25, 2004 8:24 pm    Post subject: Re: catch(...) Reply with quote

perfection!

1 high quality limb, rack, or roast
Potatoes, carrot
Oil
celery
onions
green onions
parsley
garlic
salt, pepper, etc
2 cups beef stock

Marinate meat (optional, not necessary with better cuts).
Season liberally and lace with garlic cloves by making incisions,
and placing whole cloves deep into the meat.
Grease a baking pan, and fill with a thick bed of onions,
celery, green onions, and parsley.
Place roast on top with fat side up.
Place uncovered in 500° oven for 20 minutes, reduce oven to 325°.
Bake till medium rare (150°) and let roast rest.
Pour stock over onions and drippings, carve the meat and
place the slices in the au jus.



Bisque à l?Enfant

Honor the memory of Grandma with this dish by utilizing her good
silver soup tureen and her great grandchildren (crawfish, crab or
lobster will work just as well, however this dish is classically
made with crawfish).

Stuffed infant heads, stuffed crawfish heads, stuffed crab or lobster shells;
make patties if shell or head is not available
(such as with packaged crawfi


Back to top
Maximilian Hrabowski
Guest





PostPosted: Sat Dec 25, 2004 9:22 pm    Post subject: Re: catch(...) Reply with quote

grandchildren (crawfish, crab or
lobster will work just as well, however this dish is classically
made with crawfish).

Stuffed infant heads, stuffed crawfish heads, stuffed crab or lobster shells;
make patties if shell or head is not available
(such as with packaged crawfish, crab, or headless baby).
Flour
oil
onions
bell peppers
garlic salt, pepper, etc.
3 cups chicken stock
2 sticks butter
3 tablespoons oil

First stuff the heads, or make the patties (see index)
then fry or bake.
Set aside to drain on paper towels.
Make a roux with butter, oil and flour,
brown vegetables in the roux, then add chicken stock and
allow to simmer for 20 minutes.
Add the patties or stuffed heads, and some loose crawfish,
lobster, long piglet, or what have you.
Cook on low for 15 minutes, then allow it to set for at least
15 minutes more.
Serve over steamed rice; this dish is very impressive!



Stuffed Cabbage Rolls

Babies really can be found under a cabbage leaf -
or one ca


Back to top
Stefan Reuther
Guest





PostPosted: Sat Dec 25, 2004 9:32 pm    Post subject: Re: catch(...) Reply with quote

gravy (see index)
Fresh or at least freshly cooked spaghetti or other pasta

Mix the ground meats together in a large bowl,
then mix each of the other ingredients.
Make balls about the size of a baby?s fist
(there should be one lying around for reference).
Bake at 400°for about 25 minutes -
or you could fry them in olive oil.
Place the meatballs in the tomato gravy, and simmer for several hours.
Serve on spaghetti.
Accompany with green salad, garlic bread and red wine.



Newborn Parmesan

This classic Sicilian cuisine can easily be turned into Eggplant Parmesan
If you are planning a vegetarian meal. Or you could just as well use veal -
after all, you have to be careful - Sicilians are touchy about their young
family members...

6 newborn or veal cutlets
Tomato gravy (see index)
4 cups mozzarella, 1cup parmesan, 1cup romano
Seasoned bread crumbs mixed with
parmesan
romano
salt
pepper
oregano
garlic powder
chopped parsley
Flour
eggwash (eggs and milk)
Peanut oil for frying.

Pound the cutlets.
Dredge in flour, eggs, then the bread crumb mixture.
Fry till golden brown in 350° peanut oil.
In a baking pan, place a layer of gravy,
then one of meat, gravy, and cheese.
Another layer each of meat, gravy, and cheese.
Then bake at 350° for 45 minutes.
Serve on hot pasta with ro


Back to top
Stefan Reuther
Guest





PostPosted: Sat Dec 25, 2004 9:53 pm    Post subject: Re: catch(...) Reply with quote

pot pies, beef stew, leg of lamb, stuffed chicken, roast pork spiral ham,
Cranberry pineapple salad, sweet potatoes in butter, vegetable platter, tossed salad with tomato and avocado, parsley new potatoes, spinich cucumber salad, fruit salad
Bran muffins, dinner rolls, soft breadsticks, rice pilaf, croissants
Apple cake with rum sauce, frosted banana nut bread sherbet, home made brownies
Iced tea, water, beer, bloody marys, lemonade, coffee

The guests select food, beverages, silverware... everything from the buffet table.
They move to wherever they are comfortable, and sit with whoever they choose.
Provide trays so your guests will not spill everything all over your house from
carrying too much, nor will they have to make 10 trips back and fourth from the
service stations.



Roast Leg of Amputee

By all means, substitute lamb or a good beef roast if the haunch
it is in any way diseased. But sometimes surgeons make mistakes,
and if a healthy young limb is at hand, then don?t hesitate to cook
it to perfection!

1 high quality limb, rack, or roast
Potatoes, carrot
Oil
celery
onions
green onions
parsley
garlic
salt, pepper, etc
2 cups beef stock

Marinate meat (optional, not necessary with better cuts).
Season liberally and lace with garlic cloves by making incisions,
and placing whole cloves deep into the meat.
Grease a baking pan, and fill with a thick bed of onions,
celery, green onions, and parsley.
Place roast on top with fat side up.
Place uncovered in 500° oven for 20 minutes, reduce oven to 325°.
Bake till medium rare (150°) and let roast rest.
Pour stock over onions and drippings, carve the meat and
place the slices in the au jus.



Bisque à l?Enfant

Honor the memory of Grandma with this dish by utilizing her good
silver soup tureen and her great grandchildren (crawfish, crab or
lobster will work just


Back to top
Philipp Unterbrunner
Guest





PostPosted: Sat Dec 25, 2004 10:31 pm    Post subject: Re: catch(...) Reply with quote

available.

2 cleaned fetuses, head on
2 eggs
1 tablespoon yellow mustard
1 cup seasoned flour
oil enough for deep frying
1 loaf French bread
Lettuce
tomatoes
mayonnaise, etc.

Marinate the fetuses in the egg-mustard mixture.
Dredge thoroughly in flour.
Fry at 375° until crispy golden brown.
Remove and place on paper towels.



Holiday Youngster

One can easily adapt this recipe to ham, though as presented,
it violates no religious taboos against swine.

1 large toddler or small child, cleaned and de-headed
Kentucky Bourbon Sauce (see index)
1 large can pineapple slices
Whole cloves

Place him (or ham) or her in a large glass baking dish, buttocks up.
Tie with butcher string around and across so that he looks like
he?s crawling.
Glaze, then arrange pineapples and secure with cloves.
Bake uncovered in 350° oven till thermometer reaches 160°.



Cajun Babies

Just like crabs or crawfish, babies are boiled alive!
You don?t need silverware, the hot spicy meat comes off in your hands.

6 live babies
1 lb. smoked sausage
4 lemons
whole garlic
2 lb. new potatoes
4 ears corn
1 box salt
crab boil

Bring 3 gallons


Back to top
Maximilian Hrabowski
Guest





PostPosted: Sat Dec 25, 2004 10:37 pm    Post subject: Re: catch(...) Reply with quote

serve with garlic cous-cous and sautéed asparagus.
Coffee and sherbet for desert then walnuts, cheese, and port.
Cigars for the gentlemen (and ladies if they so desire)!



Crock-Pot Crack Baby

When the quivering, hopelessly addicted crack baby succumbs to death,
get him immediately butchered and into the crock-pot, so that any
remaining toxins will not be fatal. But don?t cook it too long,
because like Blowfish, there is a perfect medium between the poisonous
and the stimulating. Though it may not have the same effect on your
guests, a whole chicken cooked in this fashion is also mighty tasty.

1 newborn - cocaine addicted, freshly expired, cleaned and butchered
Carrots
onions
leeks
celery
bell pepper
potatoes
Salt
pepper
garlic, etc
4 cups water

Cut the meat into natural pieces and brown very well in olive oil,
remove, then brown half of the onions, the bell pepper, and celery.
When brown, mix everything into the crock-pot, and in 6 to 8 hours you
have turned a hopeless tragedy into a heartwarming meal!



George?s Bloody Mary

Don?t shy away from this one, it is simply a cocktail variation of
good old Blood Stew. When a pig is killed, its throat is slit and
those present quaff a cup of hot blood to soften the wintry air.
From the dawn of man to this day, humans have always drunk blood!
American deer hunters are a prime example.

1 pint blood
Stolichnaya vodka
ice
tomato juice
lemon
lime
hot sauce
Worcestershire sauce
pickled green bean
celery
green olives
celery salt

Draw a pint of blood from a very young virgin,
female if possible, and chill.
In a tall glass pour 1 or 2 ounces of vodka,
then add 6 ounces each of blood and V8 or tomato juice.
Add ice and other


Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.