|
>> Doing
it leads to laborious try catch blocks in all the client code using the
API.
I totally agree - it
seems the only benefit of this is to try and catch errors during
development/compile time and is extra processing and not useful in
production.
Here
is a snippet of one of the constructors of the classes - remember these
follow the Value Object pattern so they're really data containers with no real
brains built in 'em:
public
class PackageSkuValueObject extends SkuValueObject implements
Serializable
{
private String
pkgSkuId;
public void
PackageSkuValueObject(String skuId) throws
InventoryAppException
{
if (skuId ==
null)
throw new InventoryAppException(1009010);
pkgSkuId = skuId;
}
}
____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________ |
- [jdjlist] RE: exceptions Repine, Burt
- [jdjlist] RE: exceptions Scot Mcphee
- [jdjlist] RE: exceptions Tomm Carr
