Skip to content

T_CommandLine_Error

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Error Class

Base type of all errors.

Inheritance Hierarchy

System.Object
  CommandLine.Error
    More... Namespace: CommandLine
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public abstract class Error : IEquatable<Error>

VB

Public MustInherit Class Error
	Implements IEquatable(Of Error)

C++

public ref class Error abstract : IEquatable<Error^>

F#

[<AbstractClassAttribute>]
type Error =  
    class
        interface IEquatable<Error>
    end

The Error type exposes the following members.

Constructors

 

Name Description
Protected method Error(ErrorType) Initializes a new instance of the Error class.
Protected method Error(ErrorType, Boolean) Initializes a new instance of the Error class.
  Back to Top

Properties

 

Name Description
Public property StopsProcessing Tells if error stops parsing process. Filtered by OnlyMeaningfulOnes(IEnumerable(Error)).
Public property Tag Error type discriminator, defined as ErrorType enumeration.
  Back to Top

Methods

 

Name Description
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Overrides Object.Equals(Object).)
Public method Equals(Error) Returns a value that indicates whether the current instance and a specified Error have the same value.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
  Back to Top

Extension Methods

 

Name Description
Private Extension Method IsEmpty (Defined by UnParserExtensions.)
Private Extension Method NormalizeValue (Defined by UnParserExtensions.)
  Back to Top

Remarks

All errors are defined within the system. There's no reason to create custom derivate types.

See Also

Reference

CommandLine Namespace

Clone this wiki locally