Partilhar via


SearchException Constructor (String)

Initializes a new instance of the SearchException class with the specified error message.

Namespace:  Microsoft.CommerceServer
Assembly:  Microsoft.CommerceServer.CrossTierTypes (in Microsoft.CommerceServer.CrossTierTypes.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String

Dim instance As New SearchException(message)
public SearchException(
    string message
)
public:
SearchException(
    String^ message
)
public function SearchException(
    message : String
)

Parameters

  • message
    Type: System..::.String
    The error message that explains the reason for the exception.

Remarks

This exception is thrown when a search fails.

A search failure may be due to various factors including a malformed search clause, the entity being searched is not a searchable entity, the searched property cannot be returned or is not searchable.

Permissions

See Also

Reference

SearchException Class

SearchException Members

SearchException Overload

Microsoft.CommerceServer Namespace