• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

Is IllegalStateException a RuntimeException

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?
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.
Hope this helps.
Good night. Drive safely. Here's a tiny ad for the road:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic