Skip to content

Commit 6841677

Browse files
authored
Merge pull request #2 from wintoncode/readme
Added README
2 parents 5a35597 + 02a8185 commit 6841677

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Winton.DomainModelling.Abstractions
2+
3+
[![Build status](https://ci.appveyor.com/api/projects/status/7mba8m947ed603r1?svg=true)](https://ci.appveyor.com/project/wintoncode/winton-domainmodelling-abstractions/branch/master)
4+
[![Travis Build Status](https://travis-ci.org/wintoncode/Winton.DomainModelling.Abstractions.svg?branch=master)](https://travis-ci.org/wintoncode/Winton.DomainModelling.Abstractions)
5+
[![NuGet version](https://img.shields.io/nuget/v/Winton.DomainModelling.Abstractions.svg)](https://www.nuget.org/packages/Winton.DomainModelling.Abstractions)
6+
[![NuGet version](https://img.shields.io/nuget/vpre/Winton.DomainModelling.Abstractions.svg)](https://www.nuget.org/packages/Winton.DomainModelling.Abstractions)
7+
8+
Abstractions useful for modelling a domain.
9+
10+
## Building blocks
11+
12+
### Entity
13+
14+
A base class to implement entity types, which are defined by their identity rather than their attributes. Implementers are equal if their IDs are equal. Any equatable ID type can be used.
15+
16+
## Exceptions
17+
18+
### DomainException
19+
20+
Represents domain errors. Extensible for any domain-specific error.
21+
22+
### EntityNotFoundException
23+
24+
Extends `DomainException` to indicate that an entity could not be found.
25+
26+
### UnauthorizedException
27+
28+
Extends `DomainException` to indicate that the action being performed is not authorized.

0 commit comments

Comments
 (0)