use php exception instead of pear error
Merge pull request #1 from ChessCom/php-exception

use php exception instead of pear error