« Return to the blog entry
Someone correct me if I'm wrong, but if an object can throw that exception, you can trap it with a try catch on the call.
try {
JPEGImageDecoder.whatever()
} catch (OutOfMemoryException oome)
{
oome.printStackTrace();
}
Please forgive me if this seems overly simplistic.
Someone correct me if I'm wrong, but if an object can throw that exception, you can trap it with a try catch on the call.
try {
JPEGImageDecoder.whatever()
} catch (OutOfMemoryException oome)
{
oome.printStackTrace();
}
Please forgive me if this seems overly simplistic.