Re: [Simple-support] Request: accessible data fields in PersistenceException
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2011-01-06 07:25:00
|
Hi, Ya, I have been meaning to do this. I will hopefully get a chance to do this soon. Should be a fairly easy task. Also, typing exceptions better I think would be helpful so that only PersistenceExceptions are thrown. Niall --- On Wed, 5/1/11, Atkins, Brian <Bri...@ne...> wrote: From: Atkins, Brian <Bri...@ne...> Subject: [Simple-support] Request: accessible data fields in PersistenceException To: sim...@li... Received: Wednesday, 5 January, 2011, 1:12 PM I am using Simple for both serialization and as a configuration mechanism. I'd like to format user friendly messages when deserialization fails due to missing elements or attributes, or when values can't be parsed correctly (e.g. NumberFormatException). Would it be possible to put relevant data in accessible fields in PersistenceException? For deserialization, information such as enclosing element/class, the actual element or attribute that failed (perhaps already indicated by exception subtype and/or cause exception (e.g. FormatException w/ cause NumberFormatException) would be most helpful. Much of this data is already provided, but it is immediately formatted into the message text. If the same information could also be provided as fields accessible from the exception class, it would be much easier to customize handling of the exception. Any information on existing methods of getting this sort of information during deserialization would also be welcome. Thanks! Batkins -----Inline Attachment Follows----- ------------------------------------------------------------------------------ Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC database without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl -----Inline Attachment Follows----- _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |