Exceptions handling
This commit is contained in:
		| @@ -18,7 +18,7 @@ namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.Admin | ||||
|  | ||||
|             if (request.Cities.Distinct().Count() < request.Cities.Length) | ||||
|             { | ||||
|                 throw new MultipleIdenticalCitiesInCountry(); | ||||
|                 throw new MultipleIdenticalCitiesInCountryException(); | ||||
|             } | ||||
|  | ||||
|             var country = new Country | ||||
|   | ||||
| @@ -2,5 +2,5 @@ | ||||
| 
 | ||||
| namespace ApplicationLayer.DataAccessingServices.Locations.RequestHandlers.AdminRequests.Exceptions | ||||
| { | ||||
|     public class MultipleIdenticalCitiesInCountry() : ApiException("There are multiple cities with one name in the country."); | ||||
|     public class MultipleIdenticalCitiesInCountryException() : ApiException("There are multiple cities with one name in the country."); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user