Announcement Announcement Module
Collapse
No announcement yet.
Is there any standard exception that can contain an Object rather than Throwable? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there any standard exception that can contain an Object rather than Throwable?

    Is there any standard exception that can contain an Object rather than Throwable? i.e some exception interface that has getObject() method?

  • #2
    Are you talking about Spring or java in general?
    What should the getObject() return? Throwables already provide much of the things you need - a message, a cause and the exception itself.
    You can wrap objects if you want inside a custom exception.

    Comment

    Working...
    X