T
twostars
Add more UI control checks to verify format (#785)
* Add more UI control checks to verify format
Include CN3BaseFileAccess::Load(), rather than silently failing.
This means that CN3BaseFileAccess::LoadFromFile() (and related) need to catch exceptions as well.
This also means that external handlers that don't go through LoadFromFile() need to be aware that
it can throw and handle accordingly.
Also some minor formatting cleanup.
* Default lengths to -1 to dual purpose EOF & invalid strings
Leave CN3BaseFileAccess::Load() alone as it's the first thing that files will usually load,
so it's most likely to trigger an EOF, so the exception message should be more obvious there.
Github Commit Görüntüle...
See Commints...
..
* Add more UI control checks to verify format
Include CN3BaseFileAccess::Load(), rather than silently failing.
This means that CN3BaseFileAccess::LoadFromFile() (and related) need to catch exceptions as well.
This also means that external handlers that don't go through LoadFromFile() need to be aware that
it can throw and handle accordingly.
Also some minor formatting cleanup.
* Default lengths to -1 to dual purpose EOF & invalid strings
Leave CN3BaseFileAccess::Load() alone as it's the first thing that files will usually load,
so it's most likely to trigger an EOF, so the exception message should be more obvious there.
Github Commit Görüntüle...
See Commints...
..