Example #1
0
 private ApiErrorOr(ApiErrorView errorView) : base(errorView)
 {
 }
Example #2
0
 public static ViewCheckResult Error(ApiErrorView errorView) => new ViewCheckResult
 {
     IsCorrect = false, ApiErrorView = errorView
 };
Example #3
0
 /// <summary>
 ///     Creates error instance with given error
 /// </summary>
 /// <param name="errorView">Error view</param>
 /// <exception cref="ArgumentNullException">Thrown if errorView is null</exception>
 /// <returns>Created ApiErrorOr</returns>
 public static ApiErrorOr <T> Error(ApiErrorView errorView) => new ApiErrorOr <T>(errorView);