-
- All Implemented Interfaces:
-
java.io.Serializable
public class BleScanException extends BleException
Exception emitted as a result of faulty scan operation. The reason describes the situation in details.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public @interfaceBleScanException.Reason
-
Field Summary
Fields Modifier and Type Field Description public final static intBLUETOOTH_CANNOT_STARTpublic final static intBLUETOOTH_DISABLEDpublic final static intBLUETOOTH_NOT_AVAILABLEpublic final static intLOCATION_PERMISSION_MISSINGpublic final static intLOCATION_SERVICES_DISABLEDpublic final static intSCAN_FAILED_ALREADY_STARTEDpublic final static intSCAN_FAILED_APPLICATION_REGISTRATION_FAILEDpublic final static intSCAN_FAILED_INTERNAL_ERRORpublic final static intSCAN_FAILED_FEATURE_UNSUPPORTEDpublic final static intSCAN_FAILED_OUT_OF_HARDWARE_RESOURCESpublic final static intUNDOCUMENTED_SCAN_THROTTLEpublic final static intUNKNOWN_ERROR_CODEprivate final intreasonprivate final DateretryDateSuggestion
-
Constructor Summary
Constructors Constructor Description BleScanException(int reason)BleScanException(int reason, Date retryDateSuggestion)BleScanException(int reason, Throwable causeException)
-
Method Summary
Modifier and Type Method Description intgetReason()Returns the reason code of scan failure. DategetRetryDateSuggestion()Returns a Date suggestion when a particular Reason should no longer be valid -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getReason
int getReason()
Returns the reason code of scan failure.
-
getRetryDateSuggestion
@Nullable() Date getRetryDateSuggestion()
-
-
-
-