CloneSet460


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
36410.979compilation_unit
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1361
src/NHibernate/PersistentObjectException.cs
2201
src/NHibernate/SessionException.cs
3181
src/NHibernate/StaleStateException.cs
4361
src/NHibernate/TransientObjectException.cs
Clone Instance
1
Line Count
36
Source Line
1
Source File
src/NHibernate/PersistentObjectException.cs

using System;
using System.Runtime.Serialization;

namespace NHibernate
{
        /// <summary>
        /// Thrown when the user passes a persistent instance to a <c>ISession</c> method that expects a
        /// transient instance
        /// </summary>
        [Serializable]
        public class PersistentObjectException : HibernateException
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="PersistentObjectException"/> class.
                /// </summary>
                /// <param name="message">The message that describes the error. </param>
                public PersistentObjectException(string message) : base(message)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="PersistentObjectException"/> class
                /// with serialized data.
                /// </summary>
                /// <param name="info">
                /// The <see cref="SerializationInfo"/> that holds the serialized object 
                /// data about the exception being thrown.
                /// </param>
                /// <param name="context">
                /// The <see cref="StreamingContext"/> that contains contextual information about the source or destination.
                /// </param>
                protected PersistentObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
                {
                }

        }
}


Clone Instance
2
Line Count
20
Source Line
1
Source File
src/NHibernate/SessionException.cs

using System;
using System.Runtime.Serialization;

namespace NHibernate
{
        [Serializable]
        public class SessionException : HibernateException
        {
                public SessionException(string message)
                        : base(message)
                {
                }

                protected SessionException(SerializationInfo info, StreamingContext context)
                        : base(info, context)
                {
                }

        }
}


Clone Instance
3
Line Count
18
Source Line
1
Source File
src/NHibernate/StaleStateException.cs

using System;
using System.Runtime.Serialization;

namespace NHibernate
{
        [Serializable]
        public class StaleStateException : HibernateException
        {
                public StaleStateException(string message) : base(message)
                {
                }

                protected StaleStateException(SerializationInfo info, StreamingContext context)
                        : base(info, context)
                {
                }

        }
}


Clone Instance
4
Line Count
36
Source Line
1
Source File
src/NHibernate/TransientObjectException.cs

using System;
using System.Runtime.Serialization;

namespace NHibernate
{
        /// <summary>
        /// Throw when the user passes a transient instance to a <c>ISession</c> method that expects
        /// a persistent instance
        /// </summary>
        [Serializable]
        public class TransientObjectException : HibernateException
        {
                /// <summary>
                /// Initializes a new instance of the <see cref="TransientObjectException"/> class.
                /// </summary>
                /// <param name="message">The message that describes the error. </param>
                public TransientObjectException(string message) : base(message)
                {
                }

                /// <summary>
                /// Initializes a new instance of the <see cref="TransientObjectException"/> class
                /// with serialized data.
                /// </summary>
                /// <param name="info">
                /// The <see cref="SerializationInfo"/> that holds the serialized object 
                /// data about the exception being thrown.
                /// </param>
                /// <param name="context">
                /// The <see cref="StreamingContext"/> that contains contextual information about the source or destination.
                /// </param>
                protected TransientObjectException(SerializationInfo info, StreamingContext context) : base(info, context)
                {
                }

        }
}


Clone AbstractionParameter Count: 1Parameter Bindings

using System;
using System.Runtime.Serialization;
namespace NHibernate
{
   /// <summary>
   /// Thrown when the user passes a persistent instance to a <c>ISession</c> method that expects a
   /// transient instance
   /// Throw when the user passes a transient instance to a <c>ISession</c> method that expects
   /// a persistent instance
   /// </summary>
   [Serializable]
   public class [[#variable54b8dbc0]]: HibernateException
   {
      /// <summary>
      /// Initializes a new instance of the <see cref="PersistentObjectException"/> class.
      /// Initializes a new instance of the <see cref="TransientObjectException"/> class.
      /// </summary>
      /// <param name="message">The message that describes the error. </param>
      public [[#variable54b8dbc0]](string message): base(message)
      {
      }

      /// <summary>
      /// Initializes a new instance of the <see cref="PersistentObjectException"/> class
      /// Initializes a new instance of the <see cref="TransientObjectException"/> class
      /// with serialized data.
      /// </summary>
      /// <param name="info">
      /// The <see cref="SerializationInfo"/> that holds the serialized object 
      /// data about the exception being thrown.
      /// </param>
      /// <param name="context">
      /// The <see cref="StreamingContext"/> that contains contextual information about the source or destination.
      /// </param>
      protected [[#variable54b8dbc0]](SerializationInfo info, StreamingContext context): base(info, context)
      {
      }

   }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54b8dbc0]]
PersistentObjectException 
12[[#54b8dbc0]]
SessionException 
13[[#54b8dbc0]]
StaleStateException 
14[[#54b8dbc0]]
TransientObjectException