-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
3,513 additions
and
3,548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
using System; | ||
|
||
namespace LockCheck | ||
namespace LockCheck; | ||
|
||
/// <summary> | ||
/// An entity that can have error state. | ||
/// </summary> | ||
public interface IHasErrorState | ||
{ | ||
/// <summary> | ||
/// An entity that can have error state. | ||
/// Get a value that indicates if the entity is erroneous. | ||
/// </summary> | ||
public interface IHasErrorState | ||
{ | ||
/// <summary> | ||
/// Get a value that indicates if the entity is erroneous. | ||
/// </summary> | ||
bool HasError { get; } | ||
bool HasError { get; } | ||
|
||
/// <summary> | ||
/// Set the error state of the entity. | ||
/// </summary> | ||
/// <remarks> | ||
/// Implementations shall only consider the first call to this method, setting <see cref="HasError"/> | ||
/// to <c>true</c>. Further calls to this function shall be ignored. | ||
/// </remarks> | ||
/// <param name="ex">An optional exception that caused the error.</param> | ||
/// <param name="errorCode">An option error code that describes the error.</param> | ||
void SetError(Exception? ex = null, int errorCode = 0); | ||
} | ||
/// <summary> | ||
/// Set the error state of the entity. | ||
/// </summary> | ||
/// <remarks> | ||
/// Implementations shall only consider the first call to this method, setting <see cref="HasError"/> | ||
/// to <c>true</c>. Further calls to this function shall be ignored. | ||
/// </remarks> | ||
/// <param name="ex">An optional exception that caused the error.</param> | ||
/// <param name="errorCode">An option error code that describes the error.</param> | ||
void SetError(Exception? ex = null, int errorCode = 0); | ||
} |
Oops, something went wrong.