Continuing building
This commit is contained in:
@@ -27,4 +27,21 @@ namespace Seenginx.Models
|
||||
|
||||
public void SetData(D data) => Data = data;
|
||||
}
|
||||
|
||||
public class Result
|
||||
{
|
||||
public bool AllOk { get; private set; } = true;
|
||||
public string ErrorMessage { get; private set; }
|
||||
public Exception Exception { get; private set; } = null;
|
||||
|
||||
public Result Invalidate(string errorMessage, Exception exception = null)
|
||||
{
|
||||
AllOk = false;
|
||||
ErrorMessage = errorMessage;
|
||||
if (exception != null)
|
||||
Exception = exception;
|
||||
|
||||
return this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user