﻿using System;
using System.Collections.Generic;

namespace Domain.Exceptions
{
    public class ModelException : Exception
    {
        public IEnumerable<ValidationError> Errors { get; set; }

        public ModelException()
        {
        }

        public ModelException(string message) : base(message)
        {
        }

        public ModelException(string message, IEnumerable<ValidationError> errors) : base(message)
        {
            Errors = errors;
        }
    }
}
