aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php')
-rw-r--r--apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php53
1 files changed, 0 insertions, 53 deletions
diff --git a/apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php b/apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php
deleted file mode 100644
index a780ff7b47c..00000000000
--- a/apps/files_external/3rdparty/google-api-php-client/src/Google/Service/Exception.php
+++ /dev/null
@@ -1,53 +0,0 @@
-<?php
-
-require_once 'Google/Exception.php';
-
-class Google_Service_Exception extends Google_Exception
-{
- /**
- * Optional list of errors returned in a JSON body of an HTTP error response.
- */
- protected $errors = array();
-
- /**
- * Override default constructor to add ability to set $errors.
- *
- * @param string $message
- * @param int $code
- * @param Exception|null $previous
- * @param [{string, string}] errors List of errors returned in an HTTP
- * response. Defaults to [].
- */
- public function __construct(
- $message,
- $code = 0,
- Exception $previous = null,
- $errors = array()
- ) {
- if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
- parent::__construct($message, $code, $previous);
- } else {
- parent::__construct($message, $code);
- }
-
- $this->errors = $errors;
- }
-
- /**
- * An example of the possible errors returned.
- *
- * {
- * "domain": "global",
- * "reason": "authError",
- * "message": "Invalid Credentials",
- * "locationType": "header",
- * "location": "Authorization",
- * }
- *
- * @return [{string, string}] List of errors return in an HTTP response or [].
- */
- public function getErrors()
- {
- return $this->errors;
- }
-}