Class SchedulingDataValidationException
- Namespace
- Quartz
- Assembly
- Quartz.dll
Reports every schema violation found in an XML or JSON scheduling data file.
public sealed class SchedulingDataValidationException : SchedulerException, ISerializable
- Inheritance
-
SchedulingDataValidationException
- Implements
- Inherited Members
Remarks
A whole document is validated before any of it is applied, so this carries a list rather than the first failure: Message is every message, one per line. Like everything else Quartz throws, it is a SchedulerException, so one catch block covers a scheduling data file's failures whether they are schema violations or anything else.
Constructors
SchedulingDataValidationException()
Constructor for SchedulingDataValidationException.
public SchedulingDataValidationException()
SchedulingDataValidationException(IEnumerable<Exception>)
Constructor for SchedulingDataValidationException.
public SchedulingDataValidationException(IEnumerable<Exception> errors)
Parameters
errorsIEnumerable<Exception>collection of validation exceptions.
SchedulingDataValidationException(string)
Constructor for SchedulingDataValidationException.
public SchedulingDataValidationException(string message)
Parameters
messagestringexception message.
Properties
Message
Returns the detail message string.
public override string Message { get; }
Property Value
ValidationExceptions
Every violation found in the document.
public IReadOnlyList<Exception> ValidationExceptions { get; }