SimplixStorage icon indicating copy to clipboard operation
SimplixStorage copied to clipboard

Rethrow exceptions

Open ChimpGamer opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. At the moment we as users of this api cannot act on exceptions thrown within this api since they are already being caught.

Describe the solution you'd like A clear and concise description of what you want to happen. Rethrow the exception so we as users of the api can handle them they way we want to.

Describe alternatives you've considered We'll a different api but without this issue there is no need to.

Additional context Some examples of internal exception handling within the api https://github.com/Simplix-Softworks/SimplixStorage/blob/master/src/main/java/de/leonhard/storage/internal/FlatFile.java#L126 https://github.com/Simplix-Softworks/SimplixStorage/blob/master/src/main/java/de/leonhard/storage/internal/FlatFile.java#L282 https://github.com/Simplix-Softworks/SimplixStorage/blob/master/src/main/java/de/leonhard/storage/internal/FlatFile.java#L298

ChimpGamer avatar Mar 20 '23 03:03 ChimpGamer

Hi thats a very valid critique. Can you create a PR to change this?

KotlinFactory avatar Mar 20 '23 11:03 KotlinFactory