Keşfet

Returning error from repository

XFdestek

Kurucu Üye
Katılım
25 May 2014
Mesajlar
3,198
Tepkime puanı
284
Konum
Türkiye
Web sitesi
fivetu.xyz
Is it ok practice to return an error from a function in a repository class? When trying to reference the error() method used by a controller, I noticed it not available for use.

Similarly, what is the proper way to reference the error method from the Repository (not sure why, but IntelliSense in VScode for me doesn't recognize the method, even in my controllers)?
 

Konu görüntüleyen kullanıcılar

Benzer konular

Geri
Üst Alt