posted 18 years ago
Hi,
am currently writing a method that has the potential to
cause an OutOfMemoryError.
As things are, i can predict from the size of the input data (will
multiply by a certain factor), that inputData > 4096 bytes will lead
to an OutOfMemory Desaster.
I can throw an Exception, but which one?
Should i throw
- My own Exception aka ThisWillNotWorkException("too much inputdata")
- RuntimeException("too much inputdata")
- OutOfMemoryError("too much inputdata")
Any thoughts on this one ?
Thank you,
J.