0185nobodyさん垢版 | 大砲2017/11/14(火) 14:49:47.97ID:??? if (!preg_match('/regex/', $arg)) { throw new xxxException(); } LogicException系ですが、 引数が期待する値でないのでこれはInvalidArgumentExceptionですか? それとも定義したデータドメインにあってないのでDomainExceptionですか? いまいちExceptionの使い分けがわかりません。