diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-02-06 13:58:29 +0000 |
---|---|---|
committer | Tim Flynn <trflynn89@pm.me> | 2022-02-16 19:49:41 -0500 |
commit | b90dc408bdd249ca04f10cf0d288e6f8549e9832 (patch) | |
tree | 9f43e8037a02ca4d529906fbdac4f061b570c71a /Base | |
parent | 8260135d4d6cc50d15b459feb6010a989fcb7f5b (diff) | |
download | serenity-b90dc408bdd249ca04f10cf0d288e6f8549e9832.zip |
LibCore: Create ConfigFiles with an already-open File
This moves the fallible action of opening the file, from the
constructor, into the factory methods which can propagate any errors.
The wrinkle here is that failure to open a ConfigFile in read-only mode
is allowed (and expected, since the file may not exist), and treated as
if an empty file was successfully opened.
Diffstat (limited to 'Base')
0 files changed, 0 insertions, 0 deletions