Mark van Renswoude
c75ea0cc62
Fixed class name missing when selecting from Tapeti class Added Filter to class selection dialog Fixed or removed some minor todo's
26 lines
529 B
C#
26 lines
529 B
C#
using System;
|
|
|
|
namespace PettingZoo.Core.Validation
|
|
{
|
|
public class PayloadValidationException : Exception
|
|
{
|
|
public TextPosition? ErrorPosition { get; }
|
|
|
|
|
|
public PayloadValidationException(string message, TextPosition? errorPosition) : base(message)
|
|
{
|
|
ErrorPosition = errorPosition;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public interface IPayloadValidator
|
|
{
|
|
bool CanValidate();
|
|
|
|
/// <exception cref="PayloadValidationException" />
|
|
void Validate(string payload);
|
|
}
|
|
}
|