2014-01-13 12:21:49 -08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class HarbormasterThrowExceptionBuildStep
|
2014-03-25 16:09:21 -07:00
|
|
|
extends HarbormasterBuildStepImplementation {
|
2014-01-13 12:21:49 -08:00
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return pht('Throw Exception');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getGenericDescription() {
|
|
|
|
return pht('Throw an exception.');
|
|
|
|
}
|
|
|
|
|
2015-08-06 04:19:42 -07:00
|
|
|
public function getBuildStepGroupKey() {
|
|
|
|
return HarbormasterTestBuildStepGroup::GROUPKEY;
|
|
|
|
}
|
|
|
|
|
2014-01-13 12:21:49 -08:00
|
|
|
public function execute(
|
|
|
|
HarbormasterBuild $build,
|
|
|
|
HarbormasterBuildTarget $build_target) {
|
|
|
|
|
|
|
|
throw new Exception(pht('(This is an explicit exception.)'));
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|