InternalLoggerException Class

Definition

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
public ref class InternalLoggerException sealed : Microsoft::Build::Framework::BuildException::BuildExceptionBase
[System.Serializable]
public sealed class InternalLoggerException : Exception
[System.Serializable]
public sealed class InternalLoggerException : Microsoft.Build.Framework.BuildException.BuildExceptionBase
[<System.Serializable>]
type InternalLoggerException = class
    inherit Exception
[<System.Serializable>]
type InternalLoggerException = class
    inherit BuildExceptionBase
Public NotInheritable Class InternalLoggerException
Inherits Exception
Public NotInheritable Class InternalLoggerException
Inherits BuildExceptionBase
Inheritance
InternalLoggerException
Inheritance
InternalLoggerException
Attributes

Remarks

WARNING: marking a type [Serializable] without implementing ISerializable imposes a serialization contract -- it is a promise to never change the type's fields i.e. the type is immutable; adding new fields in the next version of the type without following certain special FX guidelines, can break both forward and backward compatibility

Constructors

InternalLoggerException()

Default constructor.

InternalLoggerException(String)

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

InternalLoggerException(String, Exception)

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

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

StackTrace (Inherited from BuildExceptionBase)

Methods

FlushCustomState()

Override this method to provide subtype-specific state to be serialized.

(Inherited from BuildExceptionBase)
GetObjectData(SerializationInfo, StreamingContext)
Obsolete.

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.

InitializeCustomState(IDictionary<String,String>)

Override this method to recover subtype-specific state from the remote exception.

(Inherited from BuildExceptionBase)
ToString() (Inherited from BuildExceptionBase)

Applies to