allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
9
vendor/twilio/sdk/src/Twilio/Exceptions/ConfigurationException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/ConfigurationException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class ConfigurationException extends TwilioException {
|
||||
|
||||
}
|
||||
9
vendor/twilio/sdk/src/Twilio/Exceptions/DeserializeException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/DeserializeException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class DeserializeException extends TwilioException {
|
||||
|
||||
}
|
||||
9
vendor/twilio/sdk/src/Twilio/Exceptions/EnvironmentException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/EnvironmentException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class EnvironmentException extends TwilioException {
|
||||
|
||||
}
|
||||
9
vendor/twilio/sdk/src/Twilio/Exceptions/HttpException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/HttpException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class HttpException extends TwilioException {
|
||||
|
||||
}
|
||||
19
vendor/twilio/sdk/src/Twilio/Exceptions/KeyErrorException.php
vendored
Normal file
19
vendor/twilio/sdk/src/Twilio/Exceptions/KeyErrorException.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
/**
|
||||
* Exception thrown when a required key is missing from a response or metadata.
|
||||
*
|
||||
* This exception is typically thrown when the expected 'key' field is not present
|
||||
* in the response data or metadata, which may indicate a malformed or incomplete response.
|
||||
*
|
||||
* Example scenarios:
|
||||
* - When parsing API responses and the 'key' field is missing.
|
||||
* - When validating metadata and a required key is not found.
|
||||
*/
|
||||
class KeyErrorException extends TwilioException {
|
||||
|
||||
}
|
||||
52
vendor/twilio/sdk/src/Twilio/Exceptions/RestException.php
vendored
Normal file
52
vendor/twilio/sdk/src/Twilio/Exceptions/RestException.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class RestException extends TwilioException {
|
||||
protected $statusCode;
|
||||
protected $details;
|
||||
protected $moreInfo;
|
||||
|
||||
/**
|
||||
* Construct the exception. Note: The message is NOT binary safe.
|
||||
* @link http://php.net/manual/en/exception.construct.php
|
||||
* @param string $message [optional] The Exception message to throw.
|
||||
* @param int $code [optional] The Exception code.
|
||||
* @param int $statusCode [optional] The HTTP Status code.
|
||||
* @param string $moreInfo [optional] More information about the error.
|
||||
* @param array $details [optional] Additional details about the error.
|
||||
* @since 5.1.0
|
||||
*/
|
||||
public function __construct(string $message, int $code, int $statusCode, string $moreInfo = '', array $details = []) {
|
||||
$this->statusCode = $statusCode;
|
||||
$this->moreInfo = $moreInfo;
|
||||
$this->details = $details;
|
||||
parent::__construct($message, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP Status Code of the RestException
|
||||
* @return int HTTP Status Code
|
||||
*/
|
||||
public function getStatusCode(): int {
|
||||
return $this->statusCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get more information of the RestException
|
||||
* @return string More error information
|
||||
*/
|
||||
public function getMoreInfo(): string {
|
||||
return $this->moreInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the details of the RestException
|
||||
* @return array details
|
||||
*/
|
||||
public function getDetails(): array {
|
||||
return $this->details;
|
||||
}
|
||||
}
|
||||
54
vendor/twilio/sdk/src/Twilio/Exceptions/RestExceptionV1.php
vendored
Normal file
54
vendor/twilio/sdk/src/Twilio/Exceptions/RestExceptionV1.php
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class RestExceptionV1 extends TwilioException {
|
||||
protected $code;
|
||||
protected $message;
|
||||
protected $httpStatusCode;
|
||||
protected $params;
|
||||
protected $userError;
|
||||
|
||||
/**
|
||||
* Construct the exception.
|
||||
* @param int $code A unique error code.
|
||||
* @param string $message A human-readable error message.
|
||||
* @param int $httpStatusCode The HTTP status code.
|
||||
* @param array $params [optional] More information about the error.
|
||||
* @param bool $userError [optional] true if it is an error that depends on the end users actions
|
||||
*/
|
||||
public function __construct(int $code, string $message, int $httpStatusCode, array $params = [], bool $userError = false) {
|
||||
$this->code = $code;
|
||||
$this->message = $message;
|
||||
$this->httpStatusCode = $httpStatusCode;
|
||||
$this->params = $params;
|
||||
$this->userError = $userError;
|
||||
parent::__construct($message, $code);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the HTTP Status Code of the RestException
|
||||
* @return int HTTP Status Code
|
||||
*/
|
||||
public function getHttpStatusCode(): int {
|
||||
return $this->httpStatusCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get more information to additional information about the error
|
||||
* @return array additional information about the error
|
||||
*/
|
||||
public function getParams(): array {
|
||||
return $this->params;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the user error flag of the RestException
|
||||
* @return bool user error flag
|
||||
*/
|
||||
public function getUserError(): bool {
|
||||
return $this->userError;
|
||||
}
|
||||
}
|
||||
9
vendor/twilio/sdk/src/Twilio/Exceptions/TwilioException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/TwilioException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class TwilioException extends \Exception {
|
||||
|
||||
}
|
||||
9
vendor/twilio/sdk/src/Twilio/Exceptions/TwimlException.php
vendored
Normal file
9
vendor/twilio/sdk/src/Twilio/Exceptions/TwimlException.php
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Twilio\Exceptions;
|
||||
|
||||
|
||||
class TwimlException extends TwilioException {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user