Return-Path: Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 63125 invoked from network); 2 Apr 2003 08:11:15 -0000 Received: from ns2.webartjapan.com (211.5.219.227) by daedalus.apache.org with SMTP; 2 Apr 2003 08:11:15 -0000 Received: (qmail 53612 invoked by uid 89); 2 Apr 2003 08:12:38 -0000 Received: from unknown (HELO polinki) (211.5.219.230) by ns2.webartjapan.com with SMTP; 2 Apr 2003 08:12:38 -0000 Content-Type: text/plain; charset="euc-jp" From: Karl Stenerud To: "Turbine Torque Users List" Subject: Torque generated objects throw Exception on save() Date: Wed, 2 Apr 2003 17:13:18 +0900 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200304021713.18325.karl@webartjapan.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I've just noticed that my torque generated data objects' save() methods t= hrow=20 Exception: /** * Stores the object in the database. If the object is new, * it inserts it; otherwise an update is performed. * * @throws Exception */ public void save() throws Exception { save(AdminuserPeer.getMapBuilder() .getDatabaseMap().getName()); } Is there any reason why this is type Exception and not TorqueException? With type Exception, I now have to place the save() call alone within its= own=20 try statement or else I'll have no way of knowing programmatically what=20 subsystem the exception was thrown from.