Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

SPUtility.LogCustomAppError method

SharePoint 2013

Logs the specified custom error for the app instance.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
[ClientCallableExceptionConstraintAttribute(FixedId = "unauthorizedAccess", ErrorType = typeof(UnauthorizedAccessException), 
	Condition = "Thrown if the web in context is not an appweb or app identity is not set.")]
[ClientCallableExceptionConstraintAttribute(FixedId = "argumentException", ErrorType = typeof(ArgumentException), 
	Condition = "Thrown when the 'error' parameter is null or empty.")]
[SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.PerSpec)]
[ClientCallableAttribute]
public static LogAppErrorResult LogCustomAppError(
	string error
)

Parameters

error
Type: System.String

Return value

Type: Microsoft.SharePoint.Utilities.LogAppErrorResult
LogAppErrorResult indicating success or failure.

The calling code needs to establish valid app web context and app identity.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.