Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.x: widen throws on the XOnSubscribe interfaces #6579

Merged
merged 1 commit into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/CompletableOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ public interface CompletableOnSubscribe {
/**
* Called for each CompletableObserver that subscribes.
* @param emitter the safe emitter instance, never null
* @throws Exception on error
* @throws Throwable on error
*/
void subscribe(@NonNull CompletableEmitter emitter) throws Exception;
void subscribe(@NonNull CompletableEmitter emitter) throws Throwable;
}

4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/FlowableOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public interface FlowableOnSubscribe<T> {
/**
* Called for each Subscriber that subscribes.
* @param emitter the safe emitter instance, never null
* @throws Exception on error
* @throws Throwable on error
*/
void subscribe(@NonNull FlowableEmitter<T> emitter) throws Exception;
void subscribe(@NonNull FlowableEmitter<T> emitter) throws Throwable;
}

4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/MaybeOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public interface MaybeOnSubscribe<T> {
/**
* Called for each MaybeObserver that subscribes.
* @param emitter the safe emitter instance, never null
* @throws Exception on error
* @throws Throwable on error
*/
void subscribe(@NonNull MaybeEmitter<T> emitter) throws Exception;
void subscribe(@NonNull MaybeEmitter<T> emitter) throws Throwable;
}

4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/ObservableOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public interface ObservableOnSubscribe<T> {
/**
* Called for each Observer that subscribes.
* @param emitter the safe emitter instance, never null
* @throws Exception on error
* @throws Throwable on error
*/
void subscribe(@NonNull ObservableEmitter<T> emitter) throws Exception;
void subscribe(@NonNull ObservableEmitter<T> emitter) throws Throwable;
}

4 changes: 2 additions & 2 deletions src/main/java/io/reactivex/SingleOnSubscribe.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public interface SingleOnSubscribe<T> {
/**
* Called for each SingleObserver that subscribes.
* @param emitter the safe emitter instance, never null
* @throws Exception on error
* @throws Throwable on error
*/
void subscribe(@NonNull SingleEmitter<T> emitter) throws Exception;
void subscribe(@NonNull SingleEmitter<T> emitter) throws Throwable;
}