protected void error ( E error ) { this . error = checkNotNull ( error ) ; this . completed = true ; for ( Callback < T , E > callback : toBeNotified ) { callback . error ( error ) ; } }
Sets an error and status as completed . Notifies all callbacks .