public AuthenticationRequiredException(string msg) : base(msg, "ER401") { ExceptionData = new ExceptionModelBase() { Code = "ER401", Message = msg }; this.HttpStatus = System.Net.HttpStatusCode.Unauthorized; }
public AppException(string msg = "Internal server Error", string code = "ER500", HttpStatusCode HttpStatus = HttpStatusCode.InternalServerError) : base(msg) { ExceptionData = new ExceptionModelBase() { Code = code, Message = msg }; HttpStatus = HttpStatusCode.InternalServerError; }
public AppException(ExceptionModelData exceptionModel) : base(exceptionModel.Message) { ExceptionData = exceptionModel; HttpStatus = HttpStatusCode.InternalServerError; }