IotHubServiceException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
IotHubServiceException(String, Exception) |
Creates an instance of this class with the specified error message and optional inner exception. |
IotHubServiceException(String, HttpStatusCode, IotHubServiceErrorCode, String, Exception) |
Creates an instance of this class with HttpStatusCode, IotHubServiceErrorCode, error message, a flag indicating if the error was transient, an optional tracking id and an optional reference to the inner exception that caused this exception. |
IotHubServiceException(String, Exception)
Creates an instance of this class with the specified error message and optional inner exception.
public IotHubServiceException (string message, Exception innerException = default);
new Microsoft.Azure.Devices.IotHubServiceException : string * Exception -> Microsoft.Azure.Devices.IotHubServiceException
Public Sub New (message As String, Optional innerException As Exception = Nothing)
Parameters
- message
- String
The message that describes the error.
- innerException
- Exception
An inner exception, if any.
Applies to
IotHubServiceException(String, HttpStatusCode, IotHubServiceErrorCode, String, Exception)
Creates an instance of this class with HttpStatusCode, IotHubServiceErrorCode, error message, a flag indicating if the error was transient, an optional tracking id and an optional reference to the inner exception that caused this exception.
public IotHubServiceException (string message, System.Net.HttpStatusCode statusCode, Microsoft.Azure.Devices.IotHubServiceErrorCode errorCode, string trackingId = default, Exception innerException = default);
new Microsoft.Azure.Devices.IotHubServiceException : string * System.Net.HttpStatusCode * Microsoft.Azure.Devices.IotHubServiceErrorCode * string * Exception -> Microsoft.Azure.Devices.IotHubServiceException
Public Sub New (message As String, statusCode As HttpStatusCode, errorCode As IotHubServiceErrorCode, Optional trackingId As String = Nothing, Optional innerException As Exception = Nothing)
Parameters
- message
- String
The message that describes the error.
- statusCode
- HttpStatusCode
The 3-digit status code returned back in the hub service response.
- errorCode
- IotHubServiceErrorCode
The 6-digit error code representing a more specific error in details.
- trackingId
- String
The service returned tracking Id associated with this particular error.
- innerException
- Exception
The exception that is the cause of the current exception.
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기