Most efficient way of sending back an error response to the caller program in Java
<p>I have a program called input shredder which shreds a physical document containing 20 logical documents. Each logical document passes through the a transformation process and the program at the end builds the physical document back with the transformed logical documents. I need to convey back to the shredder if a logical document fails conversion .. what would be the best way to send an error code back so that the shredder can write out the errored logical document to an error stream. ??? </p>
