Add more UI control checks to verify format (#785)

  • Konuyu Başlatan Konuyu Başlatan twostars
  • Başlangıç tarihi Başlangıç tarihi
  • Öne çıkan
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...

..
 

Similar threads

T
Cevaplar
0
Görüntüleme
5
T
T
Cevaplar
0
Görüntüleme
13
twostars
T
K
Cevaplar
0
Görüntüleme
41
kenner2
K
T
Cevaplar
0
Görüntüleme
16
twostars
T
T
Cevaplar
0
Görüntüleme
21
twostars
T
Geri
Üst