Skip to content

Commit 42a0c8b

Browse files
committed
(Fixed copy-paste text in exception messages)
1 parent a448374 commit 42a0c8b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/org/nameapi/client/services/riskdetector/DataItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ final class DataItem {
3939

4040
public function __construct($value) {
4141
if ($value!=='NAME' && $value!=='ADDRESS' && $value!=='AGE' && $value!=='EMAIL' && $value!=='TEL') {
42-
throw new \Exception('Invalid value for RiskType: '.$value.'!');
42+
throw new \Exception('Invalid value for DataItem: '.$value.'!');
4343
}
4444
$this->value = $value;
4545
}

src/org/nameapi/client/services/riskdetector/DisguiseRiskType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class DisguiseRiskType extends RiskType {
5151

5252
public function __construct($value) {
5353
if ($value!=='PADDING' && $value!=='STUTTER_TYPING' && $value!=='SPACED_TYPING' && $value!=='OTHER') {
54-
throw new \Exception('Invalid value for RiskType: '.$value.'!');
54+
throw new \Exception('Invalid value for DisguiseRiskType: '.$value.'!');
5555
}
5656
$this->value = $value;
5757
}

src/org/nameapi/client/services/riskdetector/FakeRiskType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ final class FakeRiskType extends RiskType {
7979

8080
public function __construct($value) {
8181
if ($value!=='RANDOM_TYPING' && $value!=='PLACEHOLDER' && $value!=='FICTIONAL' && $value!=='FAMOUS' && $value!=='HUMOROUS' && $value!=='INVALID' && $value!=='OTHER') {
82-
throw new \Exception('Invalid value for RiskType: '.$value.'!');
82+
throw new \Exception('Invalid value for FakeRiskType: '.$value.'!');
8383
}
8484
$this->value = $value;
8585
}

0 commit comments

Comments
 (0)