public function __construct()
 {
     parent::__construct(Lang::get('oauth.unauthorized_client'), 14002);
     $this->httpStatusCode = 401;
     $errorType = class_basename($this);
     $this->errorType = snake_case(strtr($errorType, array('Exception' => '')));
 }
 public function __construct($msg)
 {
     parent::__construct($msg, 14007);
     $this->httpStatusCode = 404;
     $this->errorType = 'invalid_resoure';
 }
 public function __construct($msg)
 {
     parent::__construct($msg, 14003);
     $this->httpStatusCode = 400;
     $this->errorType = 'invalid_client';
 }
 public function __construct($msg)
 {
     parent::__construct($msg, 15001);
     $this->httpStatusCode = 500;
     $this->errorType = 'third_party_error';
 }
 public function __construct($msg = 'An database error occured')
 {
     parent::__construct($msg, 91001);
     $this->httpStatusCode = 500;
     $this->errorType = 'server_error';
 }