Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/infrastructure/customfield/exception/PhabricatorCustomFieldImplementationIncompleteException.php
13410 views
1
<?php
2
3
final class PhabricatorCustomFieldImplementationIncompleteException
4
extends Exception {
5
6
public function __construct(
7
PhabricatorCustomField $field,
8
$field_key_is_incomplete = false) {
9
10
if ($field_key_is_incomplete) {
11
$key = pht('<incomplete key>');
12
$name = pht('<incomplete name>');
13
} else {
14
$key = $field->getFieldKey();
15
$name = $field->getFieldName();
16
}
17
18
parent::__construct(
19
pht(
20
"Custom field '%s' (with key '%s', of class '%s') is incompletely ".
21
"implemented: it claims to support a feature, but does not ".
22
"implement all of the required methods for that feature.",
23
$name,
24
$key,
25
get_class($field)));
26
}
27
28
}
29
30