public class ViewModelException extends java.lang.RuntimeException implements IViewModelException
IViewModelException.| Constructor and Description |
|---|
ViewModelException(java.lang.String message) |
ViewModelException(java.lang.String message,
java.lang.Throwable cause) |
ViewModelException(java.lang.Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
static <T> rx.functions.Func1<java.lang.Throwable,rx.Observable<T>> |
mapErrorFunc()
|
static <T> rx.functions.Func1<java.lang.Throwable,rx.Observable<T>> |
mapErrorFunc(java.lang.String message)
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic ViewModelException(java.lang.String message)
public ViewModelException(java.lang.String message,
java.lang.Throwable cause)
public ViewModelException(java.lang.Throwable cause)
public static <T> rx.functions.Func1<java.lang.Throwable,rx.Observable<T>> mapErrorFunc()
Func1 which maps sent throwable to ViewModelException instance.
observable.onErrorResumeNext(ViewModelException.<Integer>mapErrorFunc(message));public static <T> rx.functions.Func1<java.lang.Throwable,rx.Observable<T>> mapErrorFunc(java.lang.String message)
Func1 which maps sent throwable to ViewModelException instance.
observable.onErrorResumeNext(ViewModelException.<Integer>mapErrorFunc(message));