@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class HarbormasterThrowExceptionBuildStep
4 extends HarbormasterBuildStepImplementation {
5
6 public function getName() {
7 return pht('Throw Exception');
8 }
9
10 public function getGenericDescription() {
11 return pht('Throw an exception.');
12 }
13
14 public function getBuildStepGroupKey() {
15 return HarbormasterTestBuildStepGroup::GROUPKEY;
16 }
17
18 public function execute(
19 HarbormasterBuild $build,
20 HarbormasterBuildTarget $build_target) {
21
22 throw new Exception(pht('(This is an explicit exception.)'));
23 }
24
25}