Share via


SP.ExceptionHandlingScope.startTry() Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Applies To
Remarks

Initiates a code block that might throw server exceptions.

var value = SP.ExceptionHandlingScope.startTry();

Return Value

Type: IDisposable

Applies To

SP.ExceptionHandlingScope Class

Remarks

The try block must be the statement immediately after SP.ExceptionHandlingScope.startScope() Method, and it must have a corresponding SP.ExceptionHandlingScope.startCatch() Method block. Each exception-handling scope can have only one try block.

See Also

Reference

SP.ExceptionHandlingScope Methods

SP.ExceptionHandlingScope Properties

SP Namespace