Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
36 | 4 | 1 | 0.979 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 36 | 1 | src/NHibernate/PersistentObjectException.cs |
2 | 20 | 1 | src/NHibernate/SessionException.cs |
3 | 18 | 1 | src/NHibernate/StaleStateException.cs |
4 | 36 | 1 | src/NHibernate/TransientObjectException.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) { } } } |
| ||||
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) { } } } |
| ||||
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) { } } } |
| ||||
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) { } } } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#54b8dbc0]] | PersistentObjectException |
1 | 2 | [[#54b8dbc0]] | SessionException |
1 | 3 | [[#54b8dbc0]] | StaleStateException |
1 | 4 | [[#54b8dbc0]] | TransientObjectException |