From 611c024a0b5a205e475d8e5f9e50ef7f64e8bbe4 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Thu, 21 May 2020 22:39:41 +0200 Subject: [PATCH] Add ValidationExprError --- KaitaiStruct.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/KaitaiStruct.cs b/KaitaiStruct.cs index 3e57143..42bcd0e 100644 --- a/KaitaiStruct.cs +++ b/KaitaiStruct.cs @@ -155,4 +155,14 @@ namespace Kaitai protected Object actual; } + + public class ValidationExprError : ValidationFailedError { + public ValidationExprError(Object actual, KaitaiStream io, string srcPath) + : base("not matching the expression, got " + actual, io, srcPath) + { + this.actual = actual; + } + + protected Object actual; + } }