mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-26 13:39:08 +01:00
26 lines
507 B
PHP
26 lines
507 B
PHP
|
<?php
|
||
|
|
||
|
final class HarbormasterThrowExceptionBuildStep
|
||
|
extends BuildStepImplementation {
|
||
|
|
||
|
public function getName() {
|
||
|
return pht('Throw Exception');
|
||
|
}
|
||
|
|
||
|
public function getGenericDescription() {
|
||
|
return pht('Throw an exception.');
|
||
|
}
|
||
|
|
||
|
public function getDescription() {
|
||
|
return pht('Throw an exception.');
|
||
|
}
|
||
|
|
||
|
public function execute(
|
||
|
HarbormasterBuild $build,
|
||
|
HarbormasterBuildTarget $build_target) {
|
||
|
|
||
|
throw new Exception(pht('(This is an explicit exception.)'));
|
||
|
}
|
||
|
|
||
|
}
|