Condividi tramite


InvalidPluginExecutionException Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online

Represents an exception that occurred during plug-in execution.

Namespace:   Microsoft.Xrm.Sdk
Assembly:  Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)

Inheritance Hierarchy

System.Object
  System.Exception
    Microsoft.Xrm.Sdk.InvalidPluginExecutionException

Syntax

[SerializableAttribute]
public sealed class InvalidPluginExecutionException : Exception, 
    ISerializable
<SerializableAttribute>
Public NotInheritable Class InvalidPluginExecutionException
    Inherits Exception
    Implements ISerializable

Constructors

Name Description
System_CAPS_pubmethod InvalidPluginExecutionException()

Initializes a new instance of the InvalidPluginExecutionException class.

System_CAPS_pubmethod InvalidPluginExecutionException(OperationStatus)

Initializes a new instance of the InvalidPluginExecutionException class with an operation status.

System_CAPS_pubmethod InvalidPluginExecutionException(OperationStatus, Int32, String)

Initializes a new instance of the InvalidPluginExecutionException class with an operation status, an error code, and an error message.

System_CAPS_pubmethod InvalidPluginExecutionException(OperationStatus, String)

Initializes a new instance of the InvalidPluginExecutionException class with an operation status and an error message.

System_CAPS_pubmethod InvalidPluginExecutionException(String)

Initializes a new instance of the InvalidPluginExecutionException class with an error message.

System_CAPS_pubmethod InvalidPluginExecutionException(String, Exception)

Initializes a new instance of the InvalidPluginExecutionException class with a reference to the inner exception that is the cause of this exception.

Properties

Name Description
System_CAPS_pubproperty Data

(Inherited from Exception.)

System_CAPS_pubproperty ErrorCode

Gets the numeric code that identifies a specific error condition.

System_CAPS_pubproperty HelpLink

(Inherited from Exception.)

System_CAPS_pubproperty HResult

(Inherited from Exception.)

System_CAPS_pubproperty InnerException

(Inherited from Exception.)

System_CAPS_pubproperty Message

(Inherited from Exception.)

System_CAPS_pubproperty Source

(Inherited from Exception.)

System_CAPS_pubproperty StackTrace

(Inherited from Exception.)

System_CAPS_pubproperty Status

Gets the status of the plug-in exception.

System_CAPS_pubproperty TargetSite

(Inherited from Exception.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_pubmethod GetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.(Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)

System_CAPS_pubmethod GetType()

(Inherited from Exception.)

System_CAPS_pubmethod ToString()

(Inherited from Exception.)

Remarks

When thrown by a plug-in, the Microsoft Dynamics 365 platform displays the exception message in a dialog of the Web application.

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

Microsoft.Xrm.Sdk Namespace
Handle exceptions in plug-ins

Return to top

Microsoft Dynamics 365

© 2016 Microsoft. All rights reserved. Copyright