FollowedContentException class

Represents an exception for a Following operation.

Inheritance hierarchy

System.Object
  System.Exception
    System.ApplicationException
      Microsoft.SharePoint.SPException
        Microsoft.Office.Server.UserProfiles.FollowedContentException

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)

Syntax

'Declaration
<SerializableAttribute> _
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public Class FollowedContentException _
    Inherits SPException
'Usage
Dim instance As FollowedContentException
[SerializableAttribute]
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public class FollowedContentException : SPException

Remarks

Values for the ErrorCode property of the FollowedContentException are shown in the following table.

Error code value

Description

ItemAlreadyExists = 3

The item is already followed.

ItemDoesNotExist = 4

The item does not exist or is not currently followed.

InvalidQueryString = 5

An invalid query string was provided.

InvalidSubtypeValue = 6

An invalid subtype value was provided.

UnsupportedItemType = 7

The item is not supported.

FollowLimitReached = 8

The user has reached the maximum number of followed items for an item type.

UntrustedSource = 9

A protected server-to-server API was called from a non-server context (for example, from a client application).

UnsupportedSite = 10

The site template is not supported (for example, My Site Host or personal sites).

InternalError = 11

An internal error occurred. See the ULS logs for more information.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

FollowedContentException members

Microsoft.Office.Server.UserProfiles namespace