public function processSetState(Identifier $identifier, $state, $message = null) { if ($this->bool) { throw new \Exception('processing setstate exception'); } else { throw new Exception('processing setstate exception', 123); } }