You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Template engine can throw many unexpected exceptions when compiling or rendering templates (I assume that the expected exception type is HandlebarsException). Here are the types of exceptions it can throw, the code snippets used to trigger them, and the stack traces:
Exception has occurred: CLR/System.ArgumentException
An unhandled exception of type 'System.ArgumentException' occurred in System.Private.CoreLib.dll: 'An item with the same key has already been added. Key: p'
at System.ThrowHelper.ThrowAddingDuplicateWithKeyArgumentException[T](T key)
at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
at HandlebarsDotNet.Compiler.HashParametersConverter.AccumulateParameters(IEnumerator`1 enumerator)
at HandlebarsDotNet.Compiler.HashParametersConverter.<ConvertTokens>d__2.MoveNext()
at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at HandlebarsDotNet.Compiler.ExpressionBuilder.ConvertTokensToExpressions(IEnumerable`1 tokens)
at HandlebarsDotNet.Compiler.HandlebarsCompiler.Compile(TextReader source)
at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.Compile(String template)
Unhandled Exception: System.InvalidCastException: Unable to cast object of type 'HandlebarsDotNet.Compiler.HashParameterDictionary' to type 'System.String'.
at lambda_method(Closure , TextWriter , Object )
at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.<>c__DisplayClass7_0.<Compile>b__0(Object context)
Exception has occurred: CLR/System.InvalidOperationException
An unhandled exception of type 'System.InvalidOperationException' occurred in Handlebars.dll: 'Reached end of template before the expression was closed.'
at HandlebarsDotNet.Compiler.Lexer.LiteralParser.AccumulateLiteral(TextReader reader, Boolean captureDelimiter, Char[] delimiters)
at HandlebarsDotNet.Compiler.Lexer.LiteralParser.Parse(TextReader reader)
at HandlebarsDotNet.Compiler.Lexer.Tokenizer.<Parse>d__8.MoveNext()
at System.Collections.Generic.List`1.AddEnumerable(IEnumerable`1 enumerable)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at HandlebarsDotNet.Compiler.HandlebarsCompiler.Compile(TextReader source)
at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.Compile(String template)
Exception has occurred: CLR/System.NullReferenceException
An unhandled exception of type 'System.NullReferenceException' occurred in Handlebars.dll: 'Object reference not set to an instance of an object.'
at HandlebarsDotNet.Compiler.PathBinder.ResolvePath(BindingContext context, String path)
at HandlebarsDotNet.Handlebars.HandlebarsEnvironment.<>c__DisplayClass7_0.<Compile>b__0(Object context)
Template engine can throw many unexpected exceptions when compiling or rendering templates (I assume that the expected exception type is HandlebarsException). Here are the types of exceptions it can throw, the code snippets used to trigger them, and the stack traces:
ArgumentException
InvalidCastException
InvalidOperationException
NullReferenceException
Found via SharpFuzz.
The text was updated successfully, but these errors were encountered: