Off Topic — HabitableZone

Off Topic » in reply to ok I scanned it

re: ok I scanned it

try{
Pearls pearls = (Pearls)swine;
}catch (ClassCastException e){
if(swine instanceof com.habitablezone.Johannes){
throw new PointlessArgumentException("You should know better, alcary, than to cast Pearls before this Swine");
}else{
throw e; //to be handled by referencing obj.
}
}

Log in or register to post.

The whole thread (87 posts)