Share via


ManagerException

ManagerException

Exception thrown by the SDM manager.

The ManagerException class is derived from the System.Exception class.

Public Constructors

The ManagerException class has the following public constructors.

Constructor Description
ManagerException()

Initializes a new instance of the ManagerException class.

ManagerException(String)

Initializes a new instance of the ManagerException class with a message.

ManagerException(String, Exception)

Initializes a new instance of the ManagerException class with a message and an inner exception.

Public Methods

The ManagerException class has the following public methods.

Method Description
Equals(Object)

Returns whether the specified Object is equal to the current Object.

Equals(Object, Object)

Static (Shared).

Returns whether the specified Object objects are equal.

GetBaseException()

When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions.

GetHashCode()

Returns the hash for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

GetObjectData(SerializationInfo, StreamingContext)

When overridden in a derived class, returns the SerializationInfo with information about the exception.

GetType()

Returns the Type of the current instance.

ReferenceEquals(Object, Object)

Static (Shared).

Returns whether the specified Object objects are the same.

ToString()

Returns a String that represents the current Object.

Public Properties

The ManagerException class has the following public properties.

Property Description
Data Data type: IDictionary
Access type: Read-only

Gets a collection of key/value pairs that provide additional, user-defined information about the exception.

HelpLink Data type: String
Access type: Read/write

Gets or sets a link to the help file associated with this exception.

InnerException Data type: Exception
Access type: Read-only

Gets the Exception that caused the current exception.

Message Data type: String
Access type: Read-only

Gets a message that describes the current exception.

Source Data type: String
Access type: Read/write

Gets or sets the name of the application or the object that causes the error.

StackTrace Data type: String
Access type: Read-only

Gets a string representation of the frames on the call stack at the time the current exception was thrown.

TargetSite Data type: MethodBase
Access type: Read-only

Gets the method that threw the current exception.

Protected Methods

The ManagerException class has the following protected methods.

Method Description
Finalize()

Attempts to free the Object resources and performs other cleanup operations before the Object is reclaimed by garbage collection.

MemberwiseClone()

Creates a shallow copy of the current Object.

Protected Properties

The ManagerException class has the following protected properties.

Property Description
HResult Data type: Int32
Access type: Read/write

A coded numerical value that is assigned to a specific exception.

Remarks

A manager should not throw an exception, but if it does (whether or not it is a ManagerException, the SDM compiler will wrap the exception in a ManagerExecutionException (internal to the compiler) and propagate the exception.

Throwing an exception will terminate the SDM compilation completely.

If a manager encounters an error, it should return a ConstraintError with the message.

Requirements

Namespace

Defined in Microsoft.SystemDefinitionModel.Manager.

Assembly

Requires Microsoft.Sdm.Manager (in Microsoft.Sdm.Manager.dll).

.NET Framework

Requires .NET Framework 2.0.

See Also

Microsoft.SystemDefinitionModel.Manager

Send comments about this topic to Microsoft

Build date: 10/2/2007