4 changed files with 33 additions and 28 deletions
@ -0,0 +1,28 @@ |
|||
using System; |
|||
using System.Runtime.Serialization; |
|||
using MathNet.Numerics.Properties; |
|||
|
|||
namespace MathNet.Numerics |
|||
{ |
|||
/// <summary>
|
|||
/// An algorithm failed to converge.
|
|||
/// </summary>
|
|||
public class NonConvergenceException : Exception |
|||
{ |
|||
public NonConvergenceException() : base(Resources.ConvergenceFailed) |
|||
{ |
|||
} |
|||
|
|||
public NonConvergenceException(string message) : base(message) |
|||
{ |
|||
} |
|||
|
|||
public NonConvergenceException(string message, Exception innerException) : base(message, innerException) |
|||
{ |
|||
} |
|||
|
|||
protected NonConvergenceException(SerializationInfo info, StreamingContext context) : base(info, context) |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
@ -1,21 +0,0 @@ |
|||
using System; |
|||
|
|||
namespace MathNet.Numerics.RootFinding |
|||
{ |
|||
public class RootFindingException : Exception |
|||
{ |
|||
public RootFindingException(string message, int iteration, double rangeMin, double rangeMax, double accuracy) |
|||
: base(message) |
|||
{ |
|||
Iteration = iteration; |
|||
RangeMin = rangeMin; |
|||
RangeMax = rangeMax; |
|||
Accuracy = accuracy; |
|||
} |
|||
|
|||
public int Iteration { get; set; } |
|||
public double RangeMin { get; set; } |
|||
public double RangeMax { get; set; } |
|||
public double Accuracy { set; get; } |
|||
} |
|||
} |
|||
Loading…
Reference in new issue