when you are using xdebug, exceptions message will never be shown if you use any encoding different than UTF-8, so if you are using any database with translated messages like oracle, you should ALWAYS, always, throw a exception like this
throw new Exception(utf8_encode($message),$code), character like ã,é,ç, will make the exception message fail to be shown, if you are not using xdebug ( I do think you should at least try), this code will not affect your page.
Exception Sınıfı
(PHP 5 >= 5.1.0)
Giriş
Exception tüm istisnalar için temel sınıftır.
Sınıf Sözdizimi
Exception
{
/* Özellikler */
/* Yöntemler */
}Özellikler
- message
-
İstisna iletisi.
- code
-
İstisna kodu.
- file
-
İstisnanın oluştuğu dosyanın ismi.
- line
-
İstisnanın oluştuğu satırın numarası.
İçindekiler
- Exception::__construct — İstisna oluşturur
- Exception::getMessage — İstisna iletisi ile döner
- Exception::getPrevious — Önceki istisnayı döndürür
- Exception::getCode — İstisnanın numarası ile döner
- Exception::getFile — İstisnanın oluştuğu dosyanın adı ile döner
- Exception::getLine — İstisnanın oluştuğu satırın numarası ile döner
- Exception::getTrace — Yığıt iziyle döner
- Exception::getTraceAsString — Yığıt izini bir dizge olarak döndürür
- Exception::__toString — İstisnanın dizgesel gösterimiyle döner
- Exception::__clone — İstisna kopyası
altieresdelsent at gmail dot com ¶
7 months ago
