Class WhimError
- Namespace
- Whim
- Assembly
- Whim.dll
Represents an error that occurred in Whim operations.
This is not an Exception and avoids the performance overhead of exceptions.
It provides a functional approach to error handling instead of exception-based error handling.
public class WhimError
- Inheritance
-
WhimError
- Inherited Members
Constructors
WhimError(string)
Creates a new WhimError with the specified message.
public WhimError(string message)
Parameters
message
string- The error message.
WhimError(string, Exception)
Creates a new WhimError with the specified message and inner exception.
public WhimError(string message, Exception innerException)
Parameters
message
string- The error message.
innerException
Exception- The inner exception that caused this error.
WhimError(string, LogLevel)
Creates a new WhimError with the specified message and log level.
public WhimError(string message, LogLevel logLevel)
Parameters
Properties
InnerException
An optional exception that caused this error (for interop with existing exception-based code).
public Exception? InnerException { get; }
Property Value
Message
The error message describing what went wrong.
public string Message { get; }
Property Value
Methods
ToString()
Returns a string representation of this error.
public override string ToString()