PHP Класс Prado\Exceptions\TException
TException is the base class for all PRADO exceptions.
TException provides the functionality of translating an error code
into a descriptive error message in a language that is preferred
by user browser. Additional parameters may be passed together with
the error code so that the translated message contains more detailed
information.
By default, TException looks for a message file by calling
{@link getErrorMessageFile()} method, which uses the "message-xx.txt"
file located under "System.Exceptions" folder, where "xx" is the
code of the user preferred language. If such a file is not found,
"message.txt" will be used instead.
Показать файл
Открыть проект
Примеры использования класса
Открытые свойства
Открытые методы
Защищенные методы
Описание методов
__construct()
публичный Метод
getErrorCode()
публичный Метод
getErrorMessage()
публичный Метод
getErrorMessageFile()
защищенный Метод
setErrorCode()
публичный Метод
setErrorMessage()
защищенный Метод
translateErrorMessage()
защищенный Метод
Translates an error code into an error message.
Описание свойств
$_messageCache статическое публичное свойство
static public $_messageCache |