PartnerException 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
| PartnerException() |
Initializes a new instance of the PartnerException class. |
| PartnerException(String) |
Initializes a new instance of the PartnerException class. |
| PartnerException(SerializationInfo, StreamingContext) |
Initializes a new instance of the PartnerException class. |
| PartnerException(String, Exception) |
Initializes a new instance of the PartnerException class. |
| PartnerException(ApiFault, IRequestContext, PartnerErrorCategory, Exception) |
Initializes a new instance of the PartnerException class. |
| PartnerException(String, IRequestContext, PartnerErrorCategory, Exception, Nullable<TimeSpan>) |
Initializes a new instance of the PartnerException class. |
PartnerException()
Initializes a new instance of the PartnerException class.
public PartnerException ();
Public Sub New ()
Applies to
PartnerException(String)
Initializes a new instance of the PartnerException class.
public PartnerException (string message);
new Microsoft.Store.PartnerCenter.Exceptions.PartnerException : string -> Microsoft.Store.PartnerCenter.Exceptions.PartnerException
Public Sub New (message As String)
Parameters
- message
- String
The exception message.
Applies to
PartnerException(SerializationInfo, StreamingContext)
Initializes a new instance of the PartnerException class.
protected PartnerException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.Store.PartnerCenter.Exceptions.PartnerException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.Store.PartnerCenter.Exceptions.PartnerException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
Serialization information.
- context
- StreamingContext
Streaming context.
Applies to
PartnerException(String, Exception)
Initializes a new instance of the PartnerException class.
public PartnerException (string message, Exception innerException);
new Microsoft.Store.PartnerCenter.Exceptions.PartnerException : string * Exception -> Microsoft.Store.PartnerCenter.Exceptions.PartnerException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
The exception message.
- innerException
- Exception
The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
Applies to
PartnerException(ApiFault, IRequestContext, PartnerErrorCategory, Exception)
Initializes a new instance of the PartnerException class.
public PartnerException (Microsoft.Store.PartnerCenter.Models.ApiFault apiFault, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext context, Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory errorCategory = Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory.NotSpecified, Exception innerException = default);
new Microsoft.Store.PartnerCenter.Exceptions.PartnerException : Microsoft.Store.PartnerCenter.Models.ApiFault * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext * Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory * Exception -> Microsoft.Store.PartnerCenter.Exceptions.PartnerException
Public Sub New (apiFault As ApiFault, context As IRequestContext, Optional errorCategory As PartnerErrorCategory = Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory.NotSpecified, Optional innerException As Exception = Nothing)
Parameters
- apiFault
- ApiFault
The API fault object returned by the partner service.
- context
- IRequestContext
The partner context.
- errorCategory
- PartnerErrorCategory
An optional error category.
- innerException
- Exception
An optional inner exception.
Applies to
PartnerException(String, IRequestContext, PartnerErrorCategory, Exception, Nullable<TimeSpan>)
Initializes a new instance of the PartnerException class.
public PartnerException (string message, Microsoft.Store.PartnerCenter.RequestContext.IRequestContext context, Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory errorCategory = Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory.NotSpecified, Exception innerException = default, TimeSpan? retryAfter = default);
new Microsoft.Store.PartnerCenter.Exceptions.PartnerException : string * Microsoft.Store.PartnerCenter.RequestContext.IRequestContext * Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory * Exception * Nullable<TimeSpan> -> Microsoft.Store.PartnerCenter.Exceptions.PartnerException
Public Sub New (message As String, context As IRequestContext, Optional errorCategory As PartnerErrorCategory = Microsoft.Store.PartnerCenter.Exceptions.PartnerErrorCategory.NotSpecified, Optional innerException As Exception = Nothing, Optional retryAfter As Nullable(Of TimeSpan) = Nothing)
Parameters
- message
- String
The exception message.
- context
- IRequestContext
The partner context.
- errorCategory
- PartnerErrorCategory
An optional error category.
- innerException
- Exception
An optional inner exception.