[TYPO3-german] Gibt es in ExtBase keine Mglichkeit die Exception abzufangen? Exception while property mapping
Nicole Cordes
typo3 at cordes.co
Wed Dec 23 11:11:07 CET 2015
Hallo Alexander,
warum fängst du die Exception nicht einfach in deinem Controller ab und gibst dort dann entsprechend die Fehlermeldung an dein Fluid template weiter?!
Liebe Grüße,
Nicole
> Am 23.12.2015 um 10:48 schrieb Alexander Averbuch <alav at gmx.net>:
>
> Die 404-Seite ist angelegt und konfiguriert. Und die Exception wird in der Datei typo3/sysext/extbase/Classes/Property/TypeConverter/PersistentObjectConverter.php in der Methode fetchObjectFromPersistence geworfen.
>
> protected function fetchObjectFromPersistence($identity, $targetType) {
> if (ctype_digit((string)$identity)) {
> $object = $this->persistenceManager->getObjectByIdentifier($identity, $targetType);
> } else {
> throw new \TYPO3\CMS\Extbase\Property\Exception\InvalidSourceException('The identity property "' . $identity . '" is no UID.', 1297931020);
> }
>
> if ($object === NULL) {
> throw new \TYPO3\CMS\Extbase\Property\Exception\TargetNotFoundException('Object with identity "' . print_r($identity, TRUE) . '" not found.', 1297933823);
> }
>
> return $object;
> }
>
> und wieso den die 404-Seite? Ich möchte selbst die Exception abfangen. Es tut mir wirklich leid, aber je länger ich mich mit Extbase beschäftige, desto schlechteren Eindruck habe ich vom Framework. So ein Sch....
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list