Ejemplo n.º 1
0
 private ApiErrorOr(ApiErrorView errorView) : base(errorView)
 {
 }
Ejemplo n.º 2
0
 public static ViewCheckResult Error(ApiErrorView errorView) => new ViewCheckResult
 {
     IsCorrect = false, ApiErrorView = errorView
 };
Ejemplo n.º 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);