IotHubServiceException Class
- java.
lang. Object - java.
lang. Throwable - java.
lang. Exception - com.
microsoft. azure. sdk. iot. device. exceptions. DeviceClientException - com.
microsoft. azure. sdk. iot. device. exceptions. TransportException - com.
microsoft. azure. sdk. iot. device. exceptions. IotHubServiceException
- com.
- com.
- com.
- java.
- java.
public class IotHubServiceException
extends TransportException
Exception class that covers all exceptions communicated from the IoT Hub that are not due to connection issues in the transport protocols. These exceptions map to standard status codes from the service (401 : unauthorized, 404 : not found, etc.)
Constructor Summary
Constructor | Description | |
---|---|---|
IotHubServiceException() | ||
IotHubServiceException(String message) | ||
IotHubServiceException(String message, Throwable cause) | ||
IotHubServiceException(Throwable cause) |
Method Summary
Modifier and Type | Method and Description |
---|---|
Iot |
getStatusCode() |
Methods inherited from TransportException
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Methods inherited from java.lang.Throwable
java.lang.Throwable.addSuppressed
java.lang.Throwable.fillInStackTrace
java.lang.Throwable.getCause
java.lang.Throwable.getLocalizedMessage
java.lang.Throwable.getMessage
java.lang.Throwable.getStackTrace
java.lang.Throwable.getSuppressed
java.lang.Throwable.initCause
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.printStackTrace
java.lang.Throwable.setStackTrace
java.lang.Throwable.toString
Constructor Details
IotHubServiceException
public IotHubServiceException()
IotHubServiceException
public IotHubServiceException(String message)
Parameters:
message
IotHubServiceException
public IotHubServiceException(String message, Throwable cause)
Parameters:
message
cause
IotHubServiceException
public IotHubServiceException(Throwable cause)
Parameters:
cause
Method Details
getStatusCode
public IotHubStatusCode getStatusCode()
Applies to
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.