Partilhar via


InternalLoggerException Class

Definition

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution

This exception is used to wrap an unhandled exception from a logger. This exception aborts the build, and it can only be thrown by the MSBuild engine.

public ref class InternalLoggerException sealed : Exception
[System.Serializable]
public sealed class InternalLoggerException : Exception
[<System.Serializable>]
type InternalLoggerException = class
    inherit Exception
Public NotInheritable Class InternalLoggerException
Inherits Exception
Inheritance
InternalLoggerException
Attributes

Remarks

Warning

This class (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Constructors

InternalLoggerException()

Default constructor.

InternalLoggerException(String, Exception)

Creates an instance of this exception using the specified error message and inner exception.

InternalLoggerException(String)

Creates an instance of this exception using the specified error message.

Properties

BuildEventArgs

Gets the details of the build event (if any) that was being logged.

ErrorCode

Gets the error code associated with this exception's message (not the inner exception).

HelpKeyword

Gets the F1-help keyword associated with this error, for the host IDE.

InitializationException

True if the exception occurred during logger initialization

Methods

GetObjectData(SerializationInfo, StreamingContext)

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution ISerializable method which we must override since Exception implements this interface If we ever add new members to this class, we'll need to update this.

Applies to