Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
HIAST-Clinics
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
HIAST-Clinics
Commits
a7ffc35b
Commit
a7ffc35b
authored
Aug 16, 2024
by
Almouhannad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(B) Add domain exceptions
parent
5d8df969
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
DomainException.cs
Clinics.Backend/Domain/Exceptions/Base/DomainException.cs
+9
-0
InvalidValueDomainException.cs
...in/Exceptions/InvalidValue/InvalidValueDomainException.cs
+13
-0
No files found.
Clinics.Backend/Domain/Exceptions/Base/DomainException.cs
0 → 100644
View file @
a7ffc35b
namespace
Domain.Exceptions.Base
;
public
abstract
class
DomainException
:
Exception
{
protected
DomainException
(
string
message
)
:
base
(
message
)
{
}
}
Clinics.Backend/Domain/Exceptions/InvalidValue/InvalidValueDomainException.cs
0 → 100644
View file @
a7ffc35b
using
Domain.Exceptions.Base
;
using
Domain.Primitives
;
namespace
Domain.Exceptions.InvalidValue
;
public
class
InvalidValueDomainException
<
TEntity
>
:
DomainException
where
TEntity
:
Entity
{
private
InvalidValueDomainException
(
string
message
=
$"Values entered for entity
{
nameof
(
TEntity
)}
are invalid"
)
:
base
(
message
)
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment