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
استثنا
Introduction
Exception کلاس پایه برای تمام استثنا است.
Class synopsis
Exception
{
/* Properties */
/* Methods */
}Properties
- message
-
پیام استثنا
- code
-
کد استثنا
- file
-
نام فایل ایجاد کننده استثنا
- line
-
خط ایجاد استثنا
Table of Contents
- Exception::__construct — ساخت استثنا
- Exception::getMessage — پیام استثنا را میگیرد
- Exception::getCode — کد استثنا را باز میگرداند
- Exception::getFile — نام فایل ایجاد کننده استثنا را باز میگرداند
- Exception::getLine — خط ایجاد کننده استثنا را مییابد
- Exception::getTrace — پشته پیگری را میگیرد
- Exception::getTraceAsString — پشته پیگری را بصورت رشته بازمیگرداند
- Exception::__toString — نمایش رشته استثنا
- Exception::__clone — کپی استثنا
altieresdelsent at gmail dot com ¶
7 months ago
