Class ActivationException

The standard exception thrown when a ServiceLocator has an error in resolving an object.

Inheritance
System.Object
System.Exception
ActivationException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7
Syntax
public class ActivationException : Exception, ISerializable, _Exception
Remarks

Constructors

ActivationException()

Initializes a new instance of the System.Exception class.

Declaration
public ActivationException()

ActivationException(SerializationInfo, StreamingContext)

Initializes a new instance of the System.Exception class with serialized data.

Declaration
protected ActivationException(SerializationInfo info, StreamingContext context)
Parameters
Type Name Description
System.Runtime.Serialization.SerializationInfo info

The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown.

System.Runtime.Serialization.StreamingContext context

The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination.

Exceptions
Type Condition
System.ArgumentNullException

The info parameter is null.

System.Runtime.Serialization.SerializationException

The class name is null or System.Exception.HResult is zero (0).

ActivationException(String)

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

Declaration
public ActivationException(string message)
Parameters
Type Name Description
System.String message

The message that describes the error.

ActivationException(String, Exception)

Initializes a new instance of the System.Exception class with a specified error message and a reference to the inner exception that is the cause of this exception.

Declaration
public ActivationException(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.

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception

Extension Methods