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()) ));
public static Either <ConfigLookupError, A> parseErrorEFor <A>( ConfigPath path, object node, string extraInfo = null ) => Either <ConfigLookupError, A> .Left(parseErrorFor <A>(path, node, extraInfo));
public ConfigPath baseOn(ConfigPath basePath) => new ConfigPath(path, Some.a(basePath.pathStrWithBase));