using Knoks.Api.Entities; using System; namespace Knoks.Api.Controllers.Base { public class ApiResponseException : Exception { public ApiError Error { get; } public ApiResponseException(ApiErrorType id, string msg = null, Exception innerException = null):base(msg, innerException) { Error = new ApiError(id, msg ?? innerException?.Message); } } }