Table of Contents

Class ServiceException

Namespace
PnP.Core
Assembly
PnP.Core.dll

Abstract class representing service errors

public class ServiceException : PnPException, ISerializable
Inheritance
ServiceException
Implements
Derived
Inherited Members

Constructors

ServiceException()

Creates a service request exception

public ServiceException()

ServiceException(ErrorType, int, string)

Creates a service request exception

public ServiceException(ErrorType type, int httpResponseCode, string message)

Parameters

type ErrorType

Error type

httpResponseCode int

Http response code of the service request that got an error back

message string

Exception message

ServiceException(string)

Creates a service request exception

public ServiceException(string message)

Parameters

message string

Exception message

ServiceException(string, Exception)

Creates a service request exception

public ServiceException(string message, Exception innerException)

Parameters

message string

Exception message

innerException Exception

Inner exception to be linked to this ServiceException