Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/harbormaster/step/HarbormasterThrowExceptionBuildStep.php
12256 views
1
<?php
2
3
final 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
}
26
27