Goz3rr / SatisfactorySaveEditor

297 stars 78 forks source link

Add proper error handling #37

Open Goz3rr opened 5 years ago

Goz3rr commented 5 years ago

The parser should propagate errors upwards and the UI should handle them gracefully, giving users something to report

Goz3rr commented 5 years ago

I have added an UnknownSaveVersionException and UnknownBuildVersionException which can be thrown when loading a save of a too new/old version that the parser doesn't understand.

In addition there also a FatalSaveException which is thrown when an unrecoverable error happens, either because of a corrupt save or programmer error.