diff --git a/build.gradle b/build.gradle index 213590c..3210a17 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ dependencies { allprojects { sourceCompatibility = 1.7 targetCompatibility = 1.7 - version = '0.2.2' + version = '0.2.3' } jacocoTestReport { diff --git a/src/main/java/com/github/mproberts/rxtools/SubjectMap.java b/src/main/java/com/github/mproberts/rxtools/SubjectMap.java index cb7a631..90a68a6 100644 --- a/src/main/java/com/github/mproberts/rxtools/SubjectMap.java +++ b/src/main/java/com/github/mproberts/rxtools/SubjectMap.java @@ -230,15 +230,15 @@ public void call(Subject subject) * to get will return a new observable and attempt to fault the value in * * @param key key with which the specified value is to be associated - * @param exception exception to be sent to the specified observable + * @param throwable throwable to be sent to the specified observable */ - public void onError(K key, final Exception exception) + public void onError(K key, final Throwable throwable) { emitUpdate(key, new Action1>() { @Override public void call(Subject subject) { - subject.onError(exception); + subject.onError(throwable); } }, true); }