Search Results for

    Show / Hide Table of Contents

    Class ServiceException

    Abstract class representing service errors

    Inheritance
    System.Object
    PnPException
    ServiceException
    CsomServiceException
    MicrosoftGraphServiceException
    SharePointRestServiceException
    Inherited Members
    PnPException.Error
    Namespace: PnP.Core
    Assembly: PnP.Core.dll
    Syntax
    public class ServiceException : PnPException

    Constructors

    ServiceException()

    Creates a service request exception

    Declaration
    public ServiceException()

    ServiceException(ErrorType, Int32, String)

    Creates a service request exception

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

    Error type

    System.Int32 httpResponseCode

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

    System.String message

    Exception message

    ServiceException(String)

    Creates a service request exception

    Declaration
    public ServiceException(string message)
    Parameters
    System.String message

    Exception message

    ServiceException(String, Exception)

    Creates a service request exception

    Declaration
    public ServiceException(string message, Exception innerException)
    Parameters
    System.String message

    Exception message

    Exception innerException

    Inner exception to be linked to this ServiceException

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer