first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
<?php
class Brizy_Editor_Http_Exceptions_BadRequest extends Brizy_Editor_Http_Exceptions_ResponseException {
}

View File

@@ -0,0 +1,17 @@
<?php
class Brizy_Editor_Http_Exceptions_ResponseException extends Brizy_Editor_API_Exceptions_Exception {
/**
* @var Brizy_Editor_Http_Response
*/
private $response;
public function __construct( $response, $previous = null ) {
$this->response = $response;
parent::__construct( $response->get_message(), $response->get_status_code(), $previous );
}
public function getResponse() {
return $this->response;
}
}

View File

@@ -0,0 +1,5 @@
<?php
class Brizy_Editor_Http_Exceptions_ResponseNotFound extends Brizy_Editor_Http_Exceptions_ResponseException {
}

View File

@@ -0,0 +1,5 @@
<?php
class Brizy_Editor_Http_Exceptions_ResponseUnauthorized extends Brizy_Editor_Http_Exceptions_ResponseException {
}