Class ResultWithExceptionEditorConfig<T>
- Namespace
- SunamoEditorConfig._public
- Assembly
- SunamoEditorConfig.dll
Represents a result that can contain either a successful result value or an exception message
public class ResultWithExceptionEditorConfig<T>
Type Parameters
TThe type of the result value
- Inheritance
-
ResultWithExceptionEditorConfig<T>
- Inherited Members
- Extension Methods
Constructors
ResultWithExceptionEditorConfig(string?)
Initializes a new instance with an exception message
public ResultWithExceptionEditorConfig(string? exception)
Parameters
exceptionstringThe exception message describing the error
ResultWithExceptionEditorConfig(T?)
Initializes a new instance with a successful result
public ResultWithExceptionEditorConfig(T? result)
Parameters
resultTThe successful result value
Properties
Exception
Gets or sets the exception message (null if the operation succeeded)
public string? Exception { get; set; }
Property Value
Result
Gets or sets the successful result value (null if an exception occurred)
public T? Result { get; set; }
Property Value
- T