Class ServiceException
Abstract class representing service errors
Inherited Members
Namespace: PnP.Core
Assembly: PnP.Core.dll
Syntax
public class ServiceException : PnPException, ISerializable
Constructors
ServiceException()
Creates a service request exception
Declaration
public ServiceException()
ServiceException(ErrorType, int, string)
Creates a service request exception
Declaration
public ServiceException(ErrorType type, int httpResponseCode, string message)
Parameters
|
ErrorType
type
Error type |
|
int
httpResponseCode
Http response code of the service request that got an error back |
|
string
message
Exception message |
ServiceException(string)
Creates a service request exception
Declaration
public ServiceException(string message)
Parameters
|
string
message
Exception message |
ServiceException(string, Exception)
Creates a service request exception
Declaration
public ServiceException(string message, Exception innerException)
Parameters
|
string
message
Exception message |
|
Exception
innerException
Inner exception to be linked to this ServiceException |