Exemplo n.º 1
0
 public static ConfigLookupError parseErrorFor <A>(
     ConfigPath path, object node, string extraInfo = null
     ) =>
 ConfigLookupError.wrongType(ImmutableArray.Create(
                                 KV.a("path", path.pathStrWithBase),
                                 KV.a("expected-type", typeof(A).FullName),
                                 KV.a("actual-type", node.GetType().FullName),
                                 KV.a("extraInfo", extraInfo ?? ""),
                                 KV.a("node-contents", node.asDebugString())
                                 ));
Exemplo n.º 2
0
 public static Either <ConfigLookupError, A> parseErrorEFor <A>(
     ConfigPath path, object node, string extraInfo = null
     ) => Either <ConfigLookupError, A> .Left(parseErrorFor <A>(path, node, extraInfo));
Exemplo n.º 3
0
 public ConfigPath baseOn(ConfigPath basePath) =>
 new ConfigPath(path, Some.a(basePath.pathStrWithBase));