Signed-off-by: Joas Schilling <coding@schilljs.com>
class ExceptionPlugin extends \OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin {
/**
- * @var \Exception[]
+ * @var \Throwable[]
*/
protected $exceptions = [];
- public function logException(\Exception $ex) {
+ public function logException(\Throwable $ex) {
$exceptionClass = get_class($ex);
if (!isset($this->nonFatalExceptions[$exceptionClass])) {
$this->exceptions[] = $ex;
}
/**
- * @return \Exception[]
+ * @return \Throwable[]
*/
public function getExceptions() {
return $this->exceptions;