Skip to content

Commit

Permalink
Move ValidationException to Core project.
Browse files Browse the repository at this point in the history
  • Loading branch information
Codespilot committed Jul 7, 2023
1 parent 587259b commit 780f2b1
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/BusinessException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;

namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Represents errors that occur during business logic execution.
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/ConfigurationException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;

namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Represents errors that occur during application configuration.
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/DataNotFoundException.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Data;
using System.Runtime.Serialization;

namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Represents errors that occur if data is not found.
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/ExceptionPrompt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Responsible for storing and returning exception prompts.
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/IExceptionPrompt.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// To be added.
Expand Down
2 changes: 1 addition & 1 deletion Source/Euonia.Core/Exceptions/InvalidValueException.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;

namespace Nerosoft.Euonia;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Represents the errors occurring when a value is invalid.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.Serialization;

namespace Nerosoft.Euonia.Validation;
namespace Nerosoft.Euonia.Core;

/// <summary>
/// Represents the exception that is thrown when given data is not valid.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Nerosoft.Euonia.Validation;
namespace Nerosoft.Euonia.Core;

[Serializable]
public class ValidationResult
Expand Down
2 changes: 2 additions & 0 deletions Source/Euonia.Validation/Core/Validator.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using Nerosoft.Euonia.Core;

namespace Nerosoft.Euonia.Validation;

/// <summary>
Expand Down
3 changes: 3 additions & 0 deletions Source/Euonia.Validation/DefaultValidator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
using FluentValidation;
using Nerosoft.Euonia.Core;

using ValidationException = Nerosoft.Euonia.Core.ValidationException;

namespace Nerosoft.Euonia.Validation;

Expand Down

0 comments on commit 780f2b1

Please sign in to comment.