Package io.moonsense.sdk.exception

Types

Link copied to clipboard
abstract class MoonsenseException(message: String?, cause: Throwable? = null) : Exception

Super class for all the Exceptions returned by the Moonsense SDK.

Link copied to clipboard
class MoonsenseInitializationException(message: String?, cause: Throwable?) : MoonsenseException

Exception returned when there is a problem initializing the SDK. Use the message field for additional information about the error. In some cases the exceptions are non recoverable i.e. the SDK cannot proceed with normal operation by retrying for example.

Link copied to clipboard
class MoonsenseNetworkException(message: String?, cause: Throwable?) : MoonsenseException

Exception returned for most network errors reported by the SDK. Use the message field for additional information about the network error.

Link copied to clipboard
class SensorPermissionException(    val sensorType: SensorType,     message: String?,     cause: Throwable?) : MoonsenseException

This exception is returned for situations where a Sensor cannot be accessed(or it can be accessed but using a different configuration).