Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
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
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Jeanne Boyarsky
Ron McLeod
Sheriffs:
Paul Clapham
Liutauras Vilda
Devaka Cooray
Saloon Keepers:
Tim Holloway
Roland Mueller
Bartenders:
Forum:
Java in General
Whenever we use throw newException("some error occured") can we pass Object as argument
Vishal Hegde
Ranch Hand
Posts: 1087
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Whenever we use throw newException("some error occured") can we pass Object as argument
throw new MyException("can't be divided by zero");
For instance right now a
string
value is added in MyException arguments can we add some Object instead of it?
http://www.lifesbizzare.blogspot.com
|| OCJP:81%
David O'Meara
Rancher
Posts: 13459
I like...
posted 13 years ago
1
Number of slices to send:
Optional 'thank-you' note:
Send
If you cretae your own Exception class there is no reason that you cannot attach your information to it.
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Exception Handling in Servlets
throw in finally clause
Chained exception
Concept on coding for Exception Handling
problem with user defined exception
More...