| | | 1 | | namespace Pozitron.QuerySpecification; |
| | | 2 | | |
| | | 3 | | /// <summary> |
| | | 4 | | /// Exception thrown when an entity is not found. |
| | | 5 | | /// </summary> |
| | | 6 | | public class EntityNotFoundException : Exception |
| | | 7 | | { |
| | | 8 | | /// <summary> |
| | | 9 | | /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class. |
| | | 10 | | /// </summary> |
| | | 11 | | public EntityNotFoundException() |
| | 1 | 12 | | : base($"The queried entity was not found!") |
| | | 13 | | { |
| | 1 | 14 | | } |
| | | 15 | | |
| | | 16 | | /// <summary> |
| | | 17 | | /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class with a specified entity name. |
| | | 18 | | /// </summary> |
| | | 19 | | /// <param name="entityName">The name of the entity that was not found.</param> |
| | | 20 | | public EntityNotFoundException(string entityName) |
| | 4 | 21 | | : base($"The queried entity: {entityName} was not found!") |
| | | 22 | | { |
| | 4 | 23 | | } |
| | | 24 | | |
| | | 25 | | /// <summary> |
| | | 26 | | /// Initializes a new instance of the <see cref="EntityNotFoundException"/> class with a specified entity name and i |
| | | 27 | | /// </summary> |
| | | 28 | | /// <param name="entityName">The name of the entity that was not found.</param> |
| | | 29 | | /// <param name="innerException">The exception that is the cause of this exception.</param> |
| | | 30 | | public EntityNotFoundException(string entityName, Exception innerException) |
| | 1 | 31 | | : base($"The queried entity: {entityName} was not found!", innerException) |
| | | 32 | | { |
| | 1 | 33 | | } |
| | | 34 | | } |