Skip to content

Commit

Permalink
revert exception update
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Rose committed May 23, 2014
1 parent 9099195 commit 988203c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions php/OAuthSimple.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,4 +506,27 @@ private function _generateSignature ()
}

class OAuthSimpleException extends Exception {

public function __construct($err, $isDebug = FALSE)
{
self::log_error($err);
if ($isDebug)
{
self::display_error($err, TRUE);
}
}

public static function log_error($err)
{
error_log($err, 0);
}

public static function display_error($err, $kill = FALSE)
{
print_r($err);
if ($kill === FALSE)
{
die();
}
}
}

0 comments on commit 988203c

Please sign in to comment.