Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Exception indicating authentication or authorization failures.
*
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
*/
class AccessDeniedException extends XApiException
{
}

View File

@@ -0,0 +1,26 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Exception indicating an error due to a conflict with the current state of
* a resource.
*
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
*/
class ConflictException extends XApiException
{
public function __construct($message)
{
parent::__construct($message, 409);
}
}

View File

@@ -0,0 +1,25 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* More specific xAPI exception indicating that a resource could not be found.
*
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
*/
class NotFoundException extends XApiException
{
public function __construct($message)
{
parent::__construct($message, 404);
}
}

View File

@@ -0,0 +1,25 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Statement id already exists exception.
*
* @author Jérôme Parmentier <jerome.parmentier@acensi.fr>
*/
class StatementIdAlreadyExistsException extends XApiException
{
public function __construct($statementId, \Exception $previous = null)
{
parent::__construct(sprintf('A statement with ID "%s" already exists.', $statementId), 0, $previous);
}
}

View File

@@ -0,0 +1,21 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Unsupported operation exception.
*
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
*/
class UnsupportedOperationException extends XApiException
{
}

View File

@@ -0,0 +1,21 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Unsupported statement version exception.
*
* @author Jérôme Parmentier <jerome.parmentier@acensi.fr>
*/
class UnsupportedStatementVersionException extends XApiException
{
}

View File

@@ -0,0 +1,21 @@
<?php
/*
* This file is part of the xAPI package.
*
* (c) Christian Flothmann <christian.flothmann@xabbuh.de>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Xabbuh\XApi\Common\Exception;
/**
* Experience API exceptions.
*
* @author Christian Flothmann <christian.flothmann@xabbuh.de>
*/
class XApiException extends \Exception
{
}