Skip to content

Commit

Permalink
drop old formatter-based exception ctors
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrnet committed Dec 17, 2023
1 parent 9b62841 commit a35ca7a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/Numerics/Exceptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ public NonConvergenceException(string message) : base(message)
public NonConvergenceException(string message, Exception innerException) : base(message, innerException)
{
}

protected NonConvergenceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -46,11 +41,6 @@ public NumericalBreakdownException(string message, Exception innerException)
: base(message, innerException)
{
}

protected NumericalBreakdownException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -72,11 +62,6 @@ protected NativeInterfaceException(string message, Exception innerException)
: base(message, innerException)
{
}

protected NativeInterfaceException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -99,11 +84,6 @@ public InvalidParameterException(int parameter, Exception innerException)
: base($"An invalid parameter was passed to a native method, parameter number : {parameter}", innerException)
{
}

protected InvalidParameterException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -121,11 +101,6 @@ public MemoryAllocationException(Exception innerException)
: base("Unable to allocate native memory.", innerException)
{
}

protected MemoryAllocationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}

/// <summary>
Expand All @@ -148,10 +123,5 @@ public SingularUMatrixException(int element, Exception innerException)
: base($"U is singular, and the inversion could not be completed. The {element}-th diagonal element of the factor U is zero.", innerException)
{
}

protected SingularUMatrixException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
}
}

0 comments on commit a35ca7a

Please sign in to comment.