Exemplo n.º 1
0
 public function __construct($code, $message, $errorDetail = '', $suggestedAction = '', $consumerMessage = '')
 {
     if (!(is_string($code) && is_string($message) && is_string($consumerMessage))) {
         throw new ErrorException("Wrong parameter types.");
     }
     parent::__construct($message);
     $this->errorCode = $code;
     $this->errorDetail = $errorDetail;
     $this->suggestedAction = $suggestedAction;
     $this->consumerMessage = $consumerMessage;
 }
Exemplo n.º 2
0
 function __construct($message)
 {
     parent::__construct($message);
 }