Attack
Forum Üyesi
- Katılım
- 4 Şub 2023
- Mesajlar
- 2,618
- Puanları
- 0
I need to throw exception in setup but the class is already extended by AbstractSetup and the exception comes from AbstractController.
Is there an easy way to get the exception and throw a message? Or can I extends two classes at the same time ?
Code:
public function uninstallStep1() { $data = \XF::finder('My\Addon:Class')->fetchOne(); if ($data['column']) { throw $this->exception( $this->error(\XF:
hrase('not_valid'))...
Is there an easy way to get the exception and throw a message? Or can I extends two classes at the same time ?
Code:
public function uninstallStep1() { $data = \XF::finder('My\Addon:Class')->fetchOne(); if ($data['column']) { throw $this->exception( $this->error(\XF:
Misafirler için gizlenen link, görmek için
Giriş yap veya üye ol.