liminal
05/13/2018, 12:43 PMaddNoteUseCase.add(note)
returns a Completable
Note(text = note.nodeText)
can throw IllegalArgumentException
. What is the recommended way to handle the error (if it occurs, the error is not caught in onError
since the emission has not occurred? Or should validation be done outside of the Note
constructor?