Class OperationAbortedException
This exception is used when someone aborts an operation in the file system.
Inheritance
Implements
Inherited Members
Namespace: EPiServer.Web.Hosting
Assembly: EPiServer.dll
Version: 8.11.0Syntax
public class OperationAbortedException : InvalidOperationException, ISerializable, _Exception
Constructors
OperationAbortedException()
Initializes a new instance of the System.OperationCanceledException class.
Declaration
public OperationAbortedException()
OperationAbortedException(SerializationInfo, StreamingContext)
Initializes a new instance of the OperationAbortedException class with serialized data.
Declaration
protected OperationAbortedException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The object that holds the serialized object data. |
System.Runtime.Serialization.StreamingContext | context | The contextual information about the source or destination. |
OperationAbortedException(String)
Initializes a new instance of the System.OperationCanceledException class.
Declaration
public OperationAbortedException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The reason for the abortion. |
OperationAbortedException(String, Exception)
Initializes the new instance of OperationAbortedException
Declaration
public OperationAbortedException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. |
Properties
Reason
Gets or sets a localized message why the operation was aborted.
Declaration
[Obsolete("The reason has been moved to the actual error message")]
public string Reason { get; set; }
Property Value
Type | Description |
---|---|
System.String | Why the operation was aborted. |