• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is IllegalStateException a RuntimeException

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Head First EJB book it is said that all system exceptions, except RemoteException, are RuntimeException. However, if I look up IllegalStateException in the J2EE API, it is a subclass of javax.jms.JMSException, which is a subclass of java.lang.Exception. Does this mean that the IllegalStateException in the J2EE API is a different one?
Thanks,
Carlo
 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Carlo
java.lang.IllegalStateException is thrown by the container to the bean if the bean calls a method on its context and its not allowed. It is a subclass of RuntimeException.
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalStateException.html
Hope this helps.
Thanks
Seema
 
Good night. Drive safely. Here's a tiny ad for the road:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic