Class DiagnosticBag
- Namespace
 - AsmResolver
 
- Assembly
 - AsmResolver.dll
 
Provides a container for collecting exceptions during a process.
public class DiagnosticBag : IErrorListener
  - Inheritance
 - 
      
      DiagnosticBag
 
- Implements
 
- Inherited Members
 
- Extension Methods
 
Properties
Exceptions
Gets a collection of all the exceptions that were thrown during the process.
public IList<Exception> Exceptions { get; }
  Property Value
HasErrors
Gets a value indicating whether the diagnostic bag contains any errors.
public bool HasErrors { get; }
  Property Value
IsFatal
Gets a value indicating whether the process had thrown an exception that was fatal and could not be recovered from.
public bool IsFatal { get; }
  Property Value
Methods
MarkAsFatal()
Marks the process to have failed.
public void MarkAsFatal()
  RegisterException(Exception)
Registers an error in the diagnostic bag.
public void RegisterException(Exception exception)
  Parameters
exceptionExceptionThe error.