Differential D10585 Diff 25583 src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/conduit/DiffusionQueryConduitAPIMethod.php
Show All 36 Lines | abstract class DiffusionQueryConduitAPIMethod | ||||
final public function defineErrorTypes() { | final public function defineErrorTypes() { | ||||
return $this->defineCustomErrorTypes() + | return $this->defineCustomErrorTypes() + | ||||
array( | array( | ||||
'ERR-UNKNOWN-REPOSITORY' => | 'ERR-UNKNOWN-REPOSITORY' => | ||||
pht('There is no repository with that callsign.'), | pht('There is no repository with that callsign.'), | ||||
'ERR-UNKNOWN-VCS-TYPE' => | 'ERR-UNKNOWN-VCS-TYPE' => | ||||
pht('Unknown repository VCS type.'), | pht('Unknown repository VCS type.'), | ||||
'ERR-UNSUPPORTED-VCS' => | 'ERR-UNSUPPORTED-VCS' => | ||||
pht('VCS is not supported for this method.')); | pht('VCS is not supported for this method.'), | ||||
); | |||||
} | } | ||||
/** | /** | ||||
* Subclasses should override this to specify custom error types. | * Subclasses should override this to specify custom error types. | ||||
*/ | */ | ||||
protected function defineCustomErrorTypes() { | protected function defineCustomErrorTypes() { | ||||
return array(); | return array(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |