Do not throw Error for a recoverable condition.
In this case, someone tried to add an element to a persisted list, and it was added in memory but the configuration could not be saved. Unclear whether that should even be treated as an error condition (the write failure might be transient, and a subsequent write would store the addition), but if it should be then we should throw a simple runtime exception.
Loading
Please register or sign in to comment