Skip to content

Commit 2ad63c4

Browse files
authored
2.x: Adjust Undeliverable & OnErrorNotImpl message to use full inner (#6236)
1 parent a04ade5 commit 2ad63c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/io/reactivex/exceptions/OnErrorNotImplementedException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@ public OnErrorNotImplementedException(String message, @NonNull Throwable e) {
4848
* the {@code Throwable} to signal; if null, a NullPointerException is constructed
4949
*/
5050
public OnErrorNotImplementedException(@NonNull Throwable e) {
51-
this("The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | " + (e != null ? e.getMessage() : ""), e);
51+
this("The exception was not handled due to missing onError handler in the subscribe() method call. Further reading: https://github.com/ReactiveX/RxJava/wiki/Error-Handling | " + e, e);
5252
}
5353
}

src/main/java/io/reactivex/exceptions/UndeliverableException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ public final class UndeliverableException extends IllegalStateException {
2828
* @param cause the cause, not null
2929
*/
3030
public UndeliverableException(Throwable cause) {
31-
super("The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | " + cause.getMessage(), cause);
31+
super("The exception could not be delivered to the consumer because it has already canceled/disposed the flow or the exception has nowhere to go to begin with. Further reading: https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#error-handling | " + cause, cause);
3232
}
3333
}

0 commit comments

Comments
 (0)