John Keyes wrote:


If I have an instance that implements an interface, but does not need to implement all of the methods, is it better to return a value or throw an exception.

The convention that I use, and have seen in at least some Jakarta-commons code, is to throw java.lang.UnsupportedOperationException.

Kris

--
=====================================================
Kris Nuttycombe
Associate Scientist
Geospatial Data Services Group
CIRES, National Geophysical Data Center/NOAA
(303) 497-6337
[EMAIL PROTECTED]
=====================================================







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to