Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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
 
Hey, I'm supposed to be the guide! Wait up! No fair! You have the tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic