Skip to content

Commit

Permalink
CM: Renaming of misnamed exception continues.
Browse files Browse the repository at this point in the history
  • Loading branch information
HankG committed Apr 30, 2012
1 parent f155195 commit aab220a
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -28,7 +28,7 @@ namespace Apache.Commons.Math.Exceptions
/// <see cref="NotSupportedException"/>, but must also provide a localized message.</para>
/// </summary>
[Serializable]
public class MathNotSupportedException: NotSupportedException, IExceptionContextProvider
public class MathUnsupportedOperationException: NotSupportedException, IExceptionContextProvider
{
/// <summary>
/// Context.
Expand All @@ -38,14 +38,14 @@ public class MathNotSupportedException: NotSupportedException, IExceptionContext
/// <summary>
/// Default constructor.
/// </summary>
public MathNotSupportedException() : this(LocalizedFormats.UNSUPPORTED_OPERATION) { }
public MathUnsupportedOperationException() : this(LocalizedFormats.UNSUPPORTED_OPERATION) { }

/// <summary>
/// Simple constructor.
/// </summary>
/// <param name="pattern">Message pattern providing the specific context of the error.</param>
/// <param name="args">Arguments</param>
public MathNotSupportedException(ILocalizable pattern, params object[] args)
public MathUnsupportedOperationException(ILocalizable pattern, params object[] args)
{
this.context = new ExceptionContext(this);
this.context.AddMessage(pattern, args);
Expand Down

0 comments on commit aab220a

Please sign in to comment.