AnantLabs / xerial

Automatically exported from code.google.com/p/xerial
0 stars 0 forks source link

BeanException type is no longer necessary. #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Please describe a summary of the new feature (in a paragraph):

BeanException class, which is used to report BeanUtil related exceptions,
can be replaced with XerialException type by merging BeanErrorCode into
XerialErrorCode. 

The rationale for this change is that BeanException class does not convey
additional information except the BeanException specific error code. And
thus, developers can write an error-specific handler code in a catch
clause, as follows:

try
{
  // some method that might through an exception
}
catch(XerialException e)
{
   switch(e.getXerialErrorCode())
   {
      case InvalidBeanClass:
         ....
      case InvalidXMLData:
         ...
   }
}

Please provide any additional information below:

Original issue reported on code.google.com by taroleo on 10 Sep 2009 at 6:17

GoogleCodeExporter commented 9 years ago
done in [3574]

Original comment by taroleo on 10 Sep 2009 at 6:55