Updated: 10/13/2003; 9:20:37 PM.
John Lambert
First we show up, then we see what happens.
        

Tuesday, March 11, 2003

multiple exceptions per catch block. Charles Miller wants to be able to catch multiple Exception types in a single catch block. Well, you can do... [Incessant Ramblings]

Always with the VB.NET... I think this is a better way:

class A: Exception {}

class B: A {}

class C: A {}

class D: B {}

class E: D {}

 

try

{

    throw new D(); // E() isn't caught

}

catch(A a) // catch only B and D

{

    Type t = a.GetType();

    // can't use 'is' because we don't want subtypes

    if (! (t == typeof(B) || t == typeof(D)))

        throw;

    Console.WriteLine("Got a {0}", a.GetType());

}


11:58:32 PM    comment []  



So, Tivo recorded this episode of Maury Povich for me. (Probably all those Cops episodes we record...) And, of course, I watched it.

Anyway, I figured out what bothered me: Maury has a chance to basically push two messages during these "I don't know who the father is" episodes: (1) the peril of having unprotected sex with multiple partners and (2) that the concept of family is orthogonal to biology. But he rarely, if ever, does. (Not that I've seen.)

Even if Ohio dislikes him, Jerry Springer always has a Final Thought at the end of his shows. (I generally think of them as "+1 Insightful", but...)


7:42:39 PM    comment []  


© Copyright 2003 John Lambert jlambert@jlambert.com A really bad webcam picture of me.

 
March 2003
Sun Mon Tue Wed Thu Fri Sat
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Feb   Apr


Click here to visit the Radio UserLand website.

Subscribe to "John Lambert" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.