function __construct($requestId, $errorCode, $errorMessage, $statusCode) { $this->requestId = $requestId; $this->errorCode = $errorCode; $this->statusCode = $statusCode; parent::__construct("{$errorMessage} [requestId:{$requestId} " . "status:{$statusCode} code:{$errorCode}]"); }
function __construct($requestId, $errorCode, $errorMessage, $statusCode) { $this->requestId = $requestId; $this->errorCode = $errorCode; $this->statusCode = $statusCode; if (is_array($errorMessage)) { $errorMessage = json_encode($errorMessage); } parent::__construct("{$errorMessage} [requestId:{$requestId} " . "status:{$statusCode} code:{$errorCode}]"); }
function __construct($message) { parent::__construct($message); }