Skip to content

Why doesn't Writer\Xls\save return anything, but Root\save does? #3676

Answered by oleibman
MikeWillis asked this question in Q&A
Discussion options

You must be logged in to vote

The save method for Xls, and for all other Writers, should either succeed or throw an exception. Getting to the next statement is an indication of sucess. The boolean return from Root/save is misleading - it will always return true (if it doesn't throw an exception). Adding a boolean return to Xls/save would be equally misleading.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MikeWillis
Comment options

Answer selected by MikeWillis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants