Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Parser
- {
- var _error_msg;
- function parse()
- {
- try
- {
- if(!non_tag)
- throw "Тэг не найден";
- if(!non_correct_value)
- throw "Неверное значение";
- return TRUE;
- }
- catch(Exception e)
- {
- $this->_error_msg = e->getMessage();
- }
- }
- }
Add Comment
Please, Sign In to add comment