CloneSet661


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16201.000catch_clauses
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11691
src/NHibernate/Dialect/Lock/SelectLockingStrategy.cs
216103
src/NHibernate/Dialect/Lock/UpdateLockingStrategy.cs
Clone Instance
1
Line Count
16
Source Line
91
Source File
src/NHibernate/Dialect/Lock/SelectLockingStrategy.cs

                        catch (HibernateException)
                        {
                                // Do not call Convert on HibernateExceptions
                                throw;
                        }
                        catch (Exception sqle)
                        {
                                var exceptionContext = new AdoExceptionContextInfo
                                                        {
                                                                SqlException = sqle,
                                                                Message = "could not lock: " + MessageHelper.InfoString(lockable, id, factory),
                                                                Sql = sql.ToString(),
                                                                EntityName = lockable.EntityName,
                                                                EntityId = id
                                                        } ;
                                throw ADOExceptionHelper.Convert(session.Factory.SQLExceptionConverter, exceptionContext);
                        }


Clone Instance
2
Line Count
16
Source Line
103
Source File
src/NHibernate/Dialect/Lock/UpdateLockingStrategy.cs

                        catch (HibernateException)
                        {
                                // Do not call Convert on HibernateExceptions
                                throw;
                        }
                        catch (Exception sqle)
                        {
                                var exceptionContext = new AdoExceptionContextInfo
                                                        {
                                                                SqlException = sqle,
                                                                Message = "could not lock: " + MessageHelper.InfoString(lockable, id, factory),
                                                                Sql = sql.ToString(),
                                                                EntityName = lockable.EntityName,
                                                                EntityId = id
                                                        } ;
                                throw ADOExceptionHelper.Convert(session.Factory.SQLExceptionConverter, exceptionContext);
                        }


Clone AbstractionParameter Count: 0Parameter Bindings

catch (HibernateException)
{
   // Do not call Convert on HibernateExceptions
   throw;
}
catch (Exception sqle)
{
   var exceptionContext = new AdoExceptionContextInfo {
                                                         SqlException = sqle, Message = "could not lock: " + MessageHelper.InfoString(lockable, id, factory), Sql = sql.ToString(), EntityName = lockable.EntityName, EntityId = id
                                                      } ;
   throw ADOExceptionHelper.Convert(session.Factory.SQLExceptionConverter, exceptionContext);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None