namespace NcProgramManager.Cnc.Models
{
    public sealed class ValidationError
    {
        public int Line { get; }
        public string Message { get; }
        public ValidationSeverity Severity { get; }

        public ValidationError(int line, string message, ValidationSeverity severity)
        {
            Line = line;
            Message = message ?? "";
            Severity = severity;
        }

        public override string ToString()
        {
            return string.Format("[{0}] Line {1}: {2}", Severity, Line, Message);
        }
    }
}
