Skip to main content

LogicError

Namespace: Bogoware.Monads

Represents a logic error, that is an error that is caused by a logical flaw in the application. A logic error is not caused by an external factor, such as a network error or a file system error. Logic errors are usually caused by invalid input or invalid state and should be treated programmatically.

This class can be further inherited to model specific domain error needs.

public class LogicError : Error, System.IEquatable`1[[Bogoware.Monads.LogicError, Bogoware.Monads, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectErrorLogicError
Implements IEquatable<LogicError>
Attributes NullableContextAttribute, NullableAttribute

Properties

Message

public string Message { get; }

Property Value

String

Constructors

LogicError(String)

public LogicError(string message)

Parameters

message String

Methods

Equals(LogicError)

public bool Equals(LogicError other)

Parameters

other LogicError

Returns

Boolean

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Deconstruct(String&)

public void Deconstruct(String& message)

Parameters

message String&

ToString()

public string ToString()

Returns

String