Class PmdDataParseException
-
- All Implemented Interfaces:
-
java.io.Serializable
public final class PmdDataParseException extends Exception
Exception thrown when PMD (Polar Measurement Data) frame parsing fails due to invalid or unexpected device data.
Instead of crashing the application, the SDK throws this exception to allow SDK users to capture and report data validity issues gracefully.
SDK users should capture and collect these unexpected errors via their preferred error reporting or analytics tool rather than solely relying on crash reports. When a stream terminates with this exception it can be restarted if desired.
The message includes:
the data type that failed to parse (e.g. "ACC", "ECG")
the frame type
a human-readable description of what is invalid
the raw bytes of the violating data unless the data may contain personally identifiable information (e.g. GNSS location) or sensitive health information (e.g. PPI / offline HR), in which case the raw bytes are omitted.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPmdDataParseException.Companion
-
Constructor Summary
Constructors Constructor Description PmdDataParseException(String message)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class kotlin.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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
-
-
Constructor Detail
-
PmdDataParseException
PmdDataParseException(String message)
-
-
-
-