private ApiErrorOr(ApiErrorView errorView) : base(errorView) { }
public static ViewCheckResult Error(ApiErrorView errorView) => new ViewCheckResult { IsCorrect = false, ApiErrorView = errorView };
/// <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);