@@ -30,114 +30,114 @@ |
||
| 30 | 30 | * @since 8.0.0 |
| 31 | 31 | */ |
| 32 | 32 | interface IDateTimeFormatter { |
| 33 | - /** |
|
| 34 | - * Formats the date of the given timestamp |
|
| 35 | - * |
|
| 36 | - * @param int|\DateTime $timestamp |
|
| 37 | - * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 38 | - * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
|
| 39 | - * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
|
| 40 | - * medium: e.g. 'MMM d, y' => 'Aug 20, 2014' |
|
| 41 | - * short: e.g. 'M/d/yy' => '8/20/14' |
|
| 42 | - * The exact format is dependent on the language |
|
| 43 | - * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 44 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 45 | - * @return string Formatted date string |
|
| 46 | - * @since 8.0.0 |
|
| 47 | - */ |
|
| 48 | - public function formatDate($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 33 | + /** |
|
| 34 | + * Formats the date of the given timestamp |
|
| 35 | + * |
|
| 36 | + * @param int|\DateTime $timestamp |
|
| 37 | + * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 38 | + * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
|
| 39 | + * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
|
| 40 | + * medium: e.g. 'MMM d, y' => 'Aug 20, 2014' |
|
| 41 | + * short: e.g. 'M/d/yy' => '8/20/14' |
|
| 42 | + * The exact format is dependent on the language |
|
| 43 | + * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 44 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 45 | + * @return string Formatted date string |
|
| 46 | + * @since 8.0.0 |
|
| 47 | + */ |
|
| 48 | + public function formatDate($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 49 | 49 | |
| 50 | - /** |
|
| 51 | - * Formats the date of the given timestamp |
|
| 52 | - * |
|
| 53 | - * @param int|\DateTime $timestamp |
|
| 54 | - * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 55 | - * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
|
| 56 | - * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
|
| 57 | - * medium: e.g. 'MMM d, y' => 'Aug 20, 2014' |
|
| 58 | - * short: e.g. 'M/d/yy' => '8/20/14' |
|
| 59 | - * The exact format is dependent on the language |
|
| 60 | - * Uses 'Today', 'Yesterday' and 'Tomorrow' when applicable |
|
| 61 | - * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 62 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 63 | - * @return string Formatted relative date string |
|
| 64 | - * @since 8.0.0 |
|
| 65 | - */ |
|
| 66 | - public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 50 | + /** |
|
| 51 | + * Formats the date of the given timestamp |
|
| 52 | + * |
|
| 53 | + * @param int|\DateTime $timestamp |
|
| 54 | + * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 55 | + * full: e.g. 'EEEE, MMMM d, y' => 'Wednesday, August 20, 2014' |
|
| 56 | + * long: e.g. 'MMMM d, y' => 'August 20, 2014' |
|
| 57 | + * medium: e.g. 'MMM d, y' => 'Aug 20, 2014' |
|
| 58 | + * short: e.g. 'M/d/yy' => '8/20/14' |
|
| 59 | + * The exact format is dependent on the language |
|
| 60 | + * Uses 'Today', 'Yesterday' and 'Tomorrow' when applicable |
|
| 61 | + * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 62 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 63 | + * @return string Formatted relative date string |
|
| 64 | + * @since 8.0.0 |
|
| 65 | + */ |
|
| 66 | + public function formatDateRelativeDay($timestamp, $format = 'long', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 67 | 67 | |
| 68 | - /** |
|
| 69 | - * Gives the relative date of the timestamp |
|
| 70 | - * Only works for past dates |
|
| 71 | - * |
|
| 72 | - * @param int|\DateTime $timestamp |
|
| 73 | - * @param int|\DateTime|null $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
|
| 74 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 75 | - * @return string Dates returned are: |
|
| 76 | - * < 1 month => Today, Yesterday, n days ago |
|
| 77 | - * < 13 month => last month, n months ago |
|
| 78 | - * >= 13 month => last year, n years ago |
|
| 79 | - * @since 8.0.0 |
|
| 80 | - */ |
|
| 81 | - public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null); |
|
| 68 | + /** |
|
| 69 | + * Gives the relative date of the timestamp |
|
| 70 | + * Only works for past dates |
|
| 71 | + * |
|
| 72 | + * @param int|\DateTime $timestamp |
|
| 73 | + * @param int|\DateTime|null $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
|
| 74 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 75 | + * @return string Dates returned are: |
|
| 76 | + * < 1 month => Today, Yesterday, n days ago |
|
| 77 | + * < 13 month => last month, n months ago |
|
| 78 | + * >= 13 month => last year, n years ago |
|
| 79 | + * @since 8.0.0 |
|
| 80 | + */ |
|
| 81 | + public function formatDateSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null); |
|
| 82 | 82 | |
| 83 | - /** |
|
| 84 | - * Formats the time of the given timestamp |
|
| 85 | - * |
|
| 86 | - * @param int|\DateTime $timestamp |
|
| 87 | - * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 88 | - * full: e.g. 'h:mm:ss a zzzz' => '11:42:13 AM GMT+0:00' |
|
| 89 | - * long: e.g. 'h:mm:ss a z' => '11:42:13 AM GMT' |
|
| 90 | - * medium: e.g. 'h:mm:ss a' => '11:42:13 AM' |
|
| 91 | - * short: e.g. 'h:mm a' => '11:42 AM' |
|
| 92 | - * The exact format is dependent on the language |
|
| 93 | - * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 94 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 95 | - * @return string Formatted time string |
|
| 96 | - * @since 8.0.0 |
|
| 97 | - */ |
|
| 98 | - public function formatTime($timestamp, $format = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 83 | + /** |
|
| 84 | + * Formats the time of the given timestamp |
|
| 85 | + * |
|
| 86 | + * @param int|\DateTime $timestamp |
|
| 87 | + * @param string $format Either 'full', 'long', 'medium' or 'short' |
|
| 88 | + * full: e.g. 'h:mm:ss a zzzz' => '11:42:13 AM GMT+0:00' |
|
| 89 | + * long: e.g. 'h:mm:ss a z' => '11:42:13 AM GMT' |
|
| 90 | + * medium: e.g. 'h:mm:ss a' => '11:42:13 AM' |
|
| 91 | + * short: e.g. 'h:mm a' => '11:42 AM' |
|
| 92 | + * The exact format is dependent on the language |
|
| 93 | + * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 94 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 95 | + * @return string Formatted time string |
|
| 96 | + * @since 8.0.0 |
|
| 97 | + */ |
|
| 98 | + public function formatTime($timestamp, $format = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 99 | 99 | |
| 100 | - /** |
|
| 101 | - * Gives the relative past time of the timestamp |
|
| 102 | - * |
|
| 103 | - * @param int|\DateTime $timestamp |
|
| 104 | - * @param int|\DateTime|null $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
|
| 105 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 106 | - * @return string Dates returned are: |
|
| 107 | - * < 60 sec => seconds ago |
|
| 108 | - * < 1 hour => n minutes ago |
|
| 109 | - * < 1 day => n hours ago |
|
| 110 | - * < 1 month => Yesterday, n days ago |
|
| 111 | - * < 13 month => last month, n months ago |
|
| 112 | - * >= 13 month => last year, n years ago |
|
| 113 | - * @since 8.0.0 |
|
| 114 | - */ |
|
| 115 | - public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null); |
|
| 100 | + /** |
|
| 101 | + * Gives the relative past time of the timestamp |
|
| 102 | + * |
|
| 103 | + * @param int|\DateTime $timestamp |
|
| 104 | + * @param int|\DateTime|null $baseTimestamp Timestamp to compare $timestamp against, defaults to current time |
|
| 105 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 106 | + * @return string Dates returned are: |
|
| 107 | + * < 60 sec => seconds ago |
|
| 108 | + * < 1 hour => n minutes ago |
|
| 109 | + * < 1 day => n hours ago |
|
| 110 | + * < 1 month => Yesterday, n days ago |
|
| 111 | + * < 13 month => last month, n months ago |
|
| 112 | + * >= 13 month => last year, n years ago |
|
| 113 | + * @since 8.0.0 |
|
| 114 | + */ |
|
| 115 | + public function formatTimeSpan($timestamp, $baseTimestamp = null, \OCP\IL10N $l = null); |
|
| 116 | 116 | |
| 117 | - /** |
|
| 118 | - * Formats the date and time of the given timestamp |
|
| 119 | - * |
|
| 120 | - * @param int|\DateTime $timestamp |
|
| 121 | - * @param string $formatDate See formatDate() for description |
|
| 122 | - * @param string $formatTime See formatTime() for description |
|
| 123 | - * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 124 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 125 | - * @return string Formatted date and time string |
|
| 126 | - * @since 8.0.0 |
|
| 127 | - */ |
|
| 128 | - public function formatDateTime($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 117 | + /** |
|
| 118 | + * Formats the date and time of the given timestamp |
|
| 119 | + * |
|
| 120 | + * @param int|\DateTime $timestamp |
|
| 121 | + * @param string $formatDate See formatDate() for description |
|
| 122 | + * @param string $formatTime See formatTime() for description |
|
| 123 | + * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 124 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 125 | + * @return string Formatted date and time string |
|
| 126 | + * @since 8.0.0 |
|
| 127 | + */ |
|
| 128 | + public function formatDateTime($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 129 | 129 | |
| 130 | - /** |
|
| 131 | - * Formats the date and time of the given timestamp |
|
| 132 | - * |
|
| 133 | - * @param int|\DateTime $timestamp |
|
| 134 | - * @param string $formatDate See formatDate() for description |
|
| 135 | - * Uses 'Today', 'Yesterday' and 'Tomorrow' when applicable |
|
| 136 | - * @param string $formatTime See formatTime() for description |
|
| 137 | - * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 138 | - * @param \OCP\IL10N|null $l The locale to use |
|
| 139 | - * @return string Formatted relative date and time string |
|
| 140 | - * @since 8.0.0 |
|
| 141 | - */ |
|
| 142 | - public function formatDateTimeRelativeDay($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 130 | + /** |
|
| 131 | + * Formats the date and time of the given timestamp |
|
| 132 | + * |
|
| 133 | + * @param int|\DateTime $timestamp |
|
| 134 | + * @param string $formatDate See formatDate() for description |
|
| 135 | + * Uses 'Today', 'Yesterday' and 'Tomorrow' when applicable |
|
| 136 | + * @param string $formatTime See formatTime() for description |
|
| 137 | + * @param \DateTimeZone|null $timeZone The timezone to use |
|
| 138 | + * @param \OCP\IL10N|null $l The locale to use |
|
| 139 | + * @return string Formatted relative date and time string |
|
| 140 | + * @since 8.0.0 |
|
| 141 | + */ |
|
| 142 | + public function formatDateTimeRelativeDay($timestamp, $formatDate = 'long', $formatTime = 'medium', \DateTimeZone $timeZone = null, \OCP\IL10N $l = null); |
|
| 143 | 143 | } |
@@ -31,18 +31,18 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | class GenericShareException extends HintException { |
| 33 | 33 | |
| 34 | - /** |
|
| 35 | - * @param string $message |
|
| 36 | - * @param string $hint |
|
| 37 | - * @param int $code |
|
| 38 | - * @param \Exception|null $previous |
|
| 39 | - * @since 9.0.0 |
|
| 40 | - */ |
|
| 41 | - public function __construct($message = '', $hint = '', $code = 0, \Exception $previous = null) { |
|
| 42 | - if (empty($message)) { |
|
| 43 | - $message = 'There was an error retrieving the share. Maybe the link is wrong, it was unshared, or it was deleted.'; |
|
| 44 | - } |
|
| 45 | - parent::__construct($message, $hint, $code, $previous); |
|
| 46 | - } |
|
| 34 | + /** |
|
| 35 | + * @param string $message |
|
| 36 | + * @param string $hint |
|
| 37 | + * @param int $code |
|
| 38 | + * @param \Exception|null $previous |
|
| 39 | + * @since 9.0.0 |
|
| 40 | + */ |
|
| 41 | + public function __construct($message = '', $hint = '', $code = 0, \Exception $previous = null) { |
|
| 42 | + if (empty($message)) { |
|
| 43 | + $message = 'There was an error retrieving the share. Maybe the link is wrong, it was unshared, or it was deleted.'; |
|
| 44 | + } |
|
| 45 | + parent::__construct($message, $hint, $code, $previous); |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | 48 | } |
@@ -35,18 +35,18 @@ |
||
| 35 | 35 | */ |
| 36 | 36 | class GenericEncryptionException extends HintException { |
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @param string $message |
|
| 40 | - * @param string $hint |
|
| 41 | - * @param int $code |
|
| 42 | - * @param \Exception|null $previous |
|
| 43 | - * @since 8.1.0 |
|
| 44 | - */ |
|
| 45 | - public function __construct($message = '', $hint = '', $code = 0, \Exception $previous = null) { |
|
| 46 | - if (empty($message)) { |
|
| 47 | - $message = 'Unspecified encryption exception'; |
|
| 48 | - } |
|
| 49 | - parent::__construct($message, $hint, $code, $previous); |
|
| 50 | - } |
|
| 38 | + /** |
|
| 39 | + * @param string $message |
|
| 40 | + * @param string $hint |
|
| 41 | + * @param int $code |
|
| 42 | + * @param \Exception|null $previous |
|
| 43 | + * @since 8.1.0 |
|
| 44 | + */ |
|
| 45 | + public function __construct($message = '', $hint = '', $code = 0, \Exception $previous = null) { |
|
| 46 | + if (empty($message)) { |
|
| 47 | + $message = 'Unspecified encryption exception'; |
|
| 48 | + } |
|
| 49 | + parent::__construct($message, $hint, $code, $previous); |
|
| 50 | + } |
|
| 51 | 51 | |
| 52 | 52 | } |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class StorageAuthException extends StorageNotAvailableException { |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * StorageAuthException constructor. |
|
| 32 | - * |
|
| 33 | - * @param string $message |
|
| 34 | - * @param \Exception|null $previous |
|
| 35 | - * @since 9.0.0 |
|
| 36 | - */ |
|
| 37 | - public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | - $l = \OC::$server->getL10N('core'); |
|
| 39 | - parent::__construct($l->t('Storage unauthorized. %s', [$message]), self::STATUS_UNAUTHORIZED, $previous); |
|
| 40 | - } |
|
| 30 | + /** |
|
| 31 | + * StorageAuthException constructor. |
|
| 32 | + * |
|
| 33 | + * @param string $message |
|
| 34 | + * @param \Exception|null $previous |
|
| 35 | + * @since 9.0.0 |
|
| 36 | + */ |
|
| 37 | + public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | + $l = \OC::$server->getL10N('core'); |
|
| 39 | + parent::__construct($l->t('Storage unauthorized. %s', [$message]), self::STATUS_UNAUTHORIZED, $previous); |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -27,16 +27,16 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class StorageBadConfigException extends StorageNotAvailableException { |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * ExtStorageBadConfigException constructor. |
|
| 32 | - * |
|
| 33 | - * @param string $message |
|
| 34 | - * @param \Exception|null $previous |
|
| 35 | - * @since 9.0.0 |
|
| 36 | - */ |
|
| 37 | - public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | - $l = \OC::$server->getL10N('core'); |
|
| 39 | - parent::__construct($l->t('Storage incomplete configuration. %s', [$message]), self::STATUS_INCOMPLETE_CONF, $previous); |
|
| 40 | - } |
|
| 30 | + /** |
|
| 31 | + * ExtStorageBadConfigException constructor. |
|
| 32 | + * |
|
| 33 | + * @param string $message |
|
| 34 | + * @param \Exception|null $previous |
|
| 35 | + * @since 9.0.0 |
|
| 36 | + */ |
|
| 37 | + public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | + $l = \OC::$server->getL10N('core'); |
|
| 39 | + parent::__construct($l->t('Storage incomplete configuration. %s', [$message]), self::STATUS_INCOMPLETE_CONF, $previous); |
|
| 40 | + } |
|
| 41 | 41 | |
| 42 | 42 | } |
@@ -32,25 +32,25 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | class ForbiddenException extends \Exception { |
| 34 | 34 | |
| 35 | - /** @var bool */ |
|
| 36 | - private $retry; |
|
| 35 | + /** @var bool */ |
|
| 36 | + private $retry; |
|
| 37 | 37 | |
| 38 | - /** |
|
| 39 | - * @param string $message |
|
| 40 | - * @param bool $retry |
|
| 41 | - * @param \Exception|null $previous previous exception for cascading |
|
| 42 | - * @since 9.0.0 |
|
| 43 | - */ |
|
| 44 | - public function __construct($message, $retry, \Exception $previous = null) { |
|
| 45 | - parent::__construct($message, 0, $previous); |
|
| 46 | - $this->retry = $retry; |
|
| 47 | - } |
|
| 38 | + /** |
|
| 39 | + * @param string $message |
|
| 40 | + * @param bool $retry |
|
| 41 | + * @param \Exception|null $previous previous exception for cascading |
|
| 42 | + * @since 9.0.0 |
|
| 43 | + */ |
|
| 44 | + public function __construct($message, $retry, \Exception $previous = null) { |
|
| 45 | + parent::__construct($message, 0, $previous); |
|
| 46 | + $this->retry = $retry; |
|
| 47 | + } |
|
| 48 | 48 | |
| 49 | - /** |
|
| 50 | - * @return bool |
|
| 51 | - * @since 9.0.0 |
|
| 52 | - */ |
|
| 53 | - public function getRetry() { |
|
| 54 | - return (bool) $this->retry; |
|
| 55 | - } |
|
| 49 | + /** |
|
| 50 | + * @return bool |
|
| 51 | + * @since 9.0.0 |
|
| 52 | + */ |
|
| 53 | + public function getRetry() { |
|
| 54 | + return (bool) $this->retry; |
|
| 55 | + } |
|
| 56 | 56 | } |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class StorageTimeoutException extends StorageNotAvailableException { |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * StorageTimeoutException constructor. |
|
| 32 | - * |
|
| 33 | - * @param string $message |
|
| 34 | - * @param \Exception|null $previous |
|
| 35 | - * @since 9.0.0 |
|
| 36 | - */ |
|
| 37 | - public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | - $l = \OC::$server->getL10N('core'); |
|
| 39 | - parent::__construct($l->t('Storage connection timeout. %s', [$message]), self::STATUS_TIMEOUT, $previous); |
|
| 40 | - } |
|
| 30 | + /** |
|
| 31 | + * StorageTimeoutException constructor. |
|
| 32 | + * |
|
| 33 | + * @param string $message |
|
| 34 | + * @param \Exception|null $previous |
|
| 35 | + * @since 9.0.0 |
|
| 36 | + */ |
|
| 37 | + public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | + $l = \OC::$server->getL10N('core'); |
|
| 39 | + parent::__construct($l->t('Storage connection timeout. %s', [$message]), self::STATUS_TIMEOUT, $previous); |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -27,15 +27,15 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | class StorageConnectionException extends StorageNotAvailableException { |
| 29 | 29 | |
| 30 | - /** |
|
| 31 | - * StorageConnectionException constructor. |
|
| 32 | - * |
|
| 33 | - * @param string $message |
|
| 34 | - * @param \Exception|null $previous |
|
| 35 | - * @since 9.0.0 |
|
| 36 | - */ |
|
| 37 | - public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | - $l = \OC::$server->getL10N('core'); |
|
| 39 | - parent::__construct($l->t('Storage connection error. %s', [$message]), self::STATUS_NETWORK_ERROR, $previous); |
|
| 40 | - } |
|
| 30 | + /** |
|
| 31 | + * StorageConnectionException constructor. |
|
| 32 | + * |
|
| 33 | + * @param string $message |
|
| 34 | + * @param \Exception|null $previous |
|
| 35 | + * @since 9.0.0 |
|
| 36 | + */ |
|
| 37 | + public function __construct($message = '', \Exception $previous = null) { |
|
| 38 | + $l = \OC::$server->getL10N('core'); |
|
| 39 | + parent::__construct($l->t('Storage connection error. %s', [$message]), self::STATUS_NETWORK_ERROR, $previous); |
|
| 40 | + } |
|
| 41 | 41 | } |
@@ -29,15 +29,15 @@ |
||
| 29 | 29 | * Authentication mechanism or backend has insufficient data |
| 30 | 30 | */ |
| 31 | 31 | class InsufficientDataForMeaningfulAnswerException extends StorageNotAvailableException { |
| 32 | - /** |
|
| 33 | - * StorageNotAvailableException constructor. |
|
| 34 | - * |
|
| 35 | - * @param string $message |
|
| 36 | - * @param int $code |
|
| 37 | - * @param \Exception|null $previous |
|
| 38 | - * @since 6.0.0 |
|
| 39 | - */ |
|
| 40 | - public function __construct($message = '', $code = self::STATUS_INDETERMINATE, \Exception $previous = null) { |
|
| 41 | - parent::__construct($message, $code, $previous); |
|
| 42 | - } |
|
| 32 | + /** |
|
| 33 | + * StorageNotAvailableException constructor. |
|
| 34 | + * |
|
| 35 | + * @param string $message |
|
| 36 | + * @param int $code |
|
| 37 | + * @param \Exception|null $previous |
|
| 38 | + * @since 6.0.0 |
|
| 39 | + */ |
|
| 40 | + public function __construct($message = '', $code = self::STATUS_INDETERMINATE, \Exception $previous = null) { |
|
| 41 | + parent::__construct($message, $code, $previous); |
|
| 42 | + } |
|
| 43 | 43 | } |