1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
-
- using System;
- namespace Topten.JsonKit
- {
-
-
-
- public class JsonParseException : Exception
- {
-
-
-
-
-
-
- public JsonParseException(Exception inner, string context, LineOffset position) :
- base(string.Format("JSON parse error at {0}{1} - {2}", position, string.IsNullOrEmpty(context) ? "" : string.Format(", context {0}", context), inner.Message), inner)
- {
- Position = position;
- Context = context;
- }
-
-
-
- public LineOffset Position { get; private set; }
-
-
-
- public string Context { get; private set; }
- }
- }
|