db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/accesslayer RowReaderDefaultImpl.java
Date Tue, 14 Jun 2005 19:17:45 GMT
arminw      2005/06/14 12:17:45

  Modified:    src/java/org/apache/ojb/broker/accesslayer Tag:
                        OJB_1_0_RELEASE RowReaderDefaultImpl.java
  Log:
  improve error message
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.30.2.5  +5 -3      db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java
  
  Index: RowReaderDefaultImpl.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/accesslayer/RowReaderDefaultImpl.java,v
  retrieving revision 1.30.2.4
  retrieving revision 1.30.2.5
  diff -u -r1.30.2.4 -r1.30.2.5
  --- RowReaderDefaultImpl.java	14 Jun 2005 13:28:12 -0000	1.30.2.4
  +++ RowReaderDefaultImpl.java	14 Jun 2005 19:17:45 -0000	1.30.2.5
  @@ -232,8 +232,10 @@
           }
           catch (SQLException t)
           {
  -            throw new PersistenceBrokerException("Error reading class type: " + m_cld.getClassNameOfObject()
  -                    + " from result set, current read field was " + (fld != null ? fld.getPersistentField().getName()
: null), t);
  +            throw new PersistenceBrokerException("Error reading class '"
  +                    + (fld != null ? fld.getClassDescriptor().getClassNameOfObject() :
m_cld.getClassNameOfObject())
  +                    + "' from result set, current read field was '"
  +                    + (fld != null ? fld.getPersistentField().getName() + "'" : null),
t);
           }
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message