Partilhar via


SP.ExceptionHandlingScope Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.ExceptionHandlingScope class.

Methods

Name

Description

customFromJson

Indicates whether custom code is used to initialize the SP.ExceptionHandlingScope.startScope() Method.

ExceptionHandlingScope

Initializes a new instance of the SP.ExceptionHandlingScope Class with the specified client runtime context.

fromJson

startCatch

Initiates the start of a custom code block that is to be executed on the client when the server throws an exception.

startFinally

Initiates the start of a custom code block that is to be executed on the client after all SP.ExceptionHandlingScope.startCatch() Method code blocks have been executed.

startScope

Initiates a code block that contains calls to the SP.ExceptionHandlingScope.startTry() Method, SP.ExceptionHandlingScope.startCatch() Method and SP.ExceptionHandlingScope.startFinally() Method methods.

startTry

Initiates a code block that might throw server exceptions.

Applies To

SP.ExceptionHandlingScope Class

See Also

Reference

SP.ExceptionHandlingScope Properties

SP Namespace