Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
50 | 2 | 3 | 0.953 | class_member_declarations |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 50 | 16 | src/NHibernate/Classic/ValidationFailure.cs |
2 | 50 | 18 | src/NHibernate/HibernateException.cs |
| ||||
/// <summary> /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> public ValidationFailure() : base("A validation failure occurred") { } /// <summary> /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> public ValidationFailure(string message) : base(message) { } /// <summary> /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public ValidationFailure(Exception innerException) : base("A validation failure occurred", innerException) { } /// <summary> /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public ValidationFailure(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Initializes a new instance of the <see cref="ValidationFailure"/> 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 ValidationFailure(SerializationInfo info, StreamingContext context) : base(info, context) { } |
| ||||
/// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// </summary> public HibernateException() : base("An exception occurred in the persistence layer.") { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> public HibernateException(string message) : base(message) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// </summary> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public HibernateException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public HibernateException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> 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 HibernateException(SerializationInfo info, StreamingContext context) : base(info, context) { } |
| |||
/// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> public [[#variable56b30a80]](): base( [[#variable573e2760]]) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> public [[#variable56b30a80]](string message): base(message) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public [[#variable56b30a80]](Exception innerException): base( [[#variable573e3b40]], innerException) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class. /// Initializes a new instance of the <see cref="ValidationFailure"/> class. /// </summary> /// <param name="message">The message that describes the error. </param> /// <param name="innerException"> /// The exception that is the cause of the current exception. If the innerException parameter /// is not a null reference, the current exception is raised in a catch block that handles /// the inner exception. /// </param> public [[#variable56b30a80]](string message, Exception innerException): base(message, innerException) { } /// <summary> /// Initializes a new instance of the <see cref="HibernateException"/> class /// Initializes a new instance of the <see cref="ValidationFailure"/> 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 [[#variable56b30a80]](SerializationInfo info, StreamingContext context): base(info, context) { } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#56b30a80]] | HibernateException |
1 | 2 | [[#56b30a80]] | ValidationFailure |
2 | 1 | [[#573e2760]] | "An exception occurred in the persistence layer." |
2 | 2 | [[#573e2760]] | "A validation failure occurred" |
3 | 1 | [[#573e3b40]] | innerException.Message |
3 | 2 | [[#573e3b40]] | "A validation failure occurred" |