-
- All Implemented Interfaces:
-
java.io.Serializable
public final class SHealthException extends RuntimeException
Wrapped Exception for all Exceptions in the Validic SHealth SDK. If Samsung Health reports an error while attempting to connect to Samsung Health, then connectionErrorResult will not be null and will contain the underlying error result. It is possible that this result is resolvable. HealthConnectionErrorResult.isResolvable() returns whether action can be taken using HealthConnectionErrorResult.resolve(Activity)
Any action that throws this error must be called again after any resolution for HealthConnectionErrorResult.resolve(Activity).
If an Exception was reported by the Library, it will be captured as cause.
-
-
Field Summary
Fields Modifier and Type Field Description private final SHealthError
sHealthError
private final HealthConnectionErrorResult
connectionErrorResult
private final String
message
private final Throwable
cause
-
Method Summary
Modifier and Type Method Description final SHealthError
getSHealthError()
final HealthConnectionErrorResult
getConnectionErrorResult()
String
getMessage()
Throwable
getCause()
-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSHealthError
final SHealthError getSHealthError()
-
getConnectionErrorResult
final HealthConnectionErrorResult getConnectionErrorResult()
-
getMessage
String getMessage()
-
-
-
-