PHP Class WoohooLabs\Yin\JsonApi\Exception\DefaultExceptionFactory

Inheritance: implements WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
Afficher le fichier Open project: woohoolabs/yin

Méthodes publiques

Méthode Description
createApplicationErrorException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : ApplicationError
createClientGeneratedIdAlreadyExistsException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdAlreadyExists
createClientGeneratedIdNotSupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported
createClientGeneratedIdRequiredException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdRequired
createDataMemberMissingException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\DataMemberMissing
createFullReplacementProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\FullReplacementProhibited
createInclusionUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $unrecognizedInclusions ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnrecognized
createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported
createMediaTypeUnacceptableException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable
createMediaTypeUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported
createQueryParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $queryParamName ) : WoohooLabs\Yin\JsonApi\Exception\QueryParamUnrecognized
createRelationshipNotExists ( string $relationship ) : Exception
createRelationshipTypeInappropriateException ( $relationshipName, $currentRelationshipType, $expectedRelationshipType ) : WoohooLabs\Yin\JsonApi\Exception\RelationshipTypeInappropriate
createRemovalProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\RemovalProhibited
createRequestBodyInvalidJsonApiException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJsonApi
createRequestBodyInvalidJsonException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJson
createResourceIdInvalidException ( $id ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdInvalid
createResourceIdMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdMissing
createResourceIdentifierIdMissing ( array $resourceIdentifier ) : Exception
createResourceIdentifierTypeMissing ( array $resourceIdentifier ) : Exception
createResourceNotFoundException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ResourceNotFound
createResourceTypeMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeMissing
createResourceTypeUnacceptableException ( $currentType, array $acceptedTypes ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeUnacceptable
createResponseBodyInvalidJsonApiException ( Psr\Http\Message\ResponseInterface $response, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJsonApi
createResponseBodyInvalidJsonException ( Psr\Http\Message\ResponseInterface $response, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJson
createSortParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $paramName ) : WoohooLabs\Yin\JsonApi\Exception\SortParamUnrecognized
createSortingUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\SortingUnsupported

Method Details

createApplicationErrorException() public méthode

public createApplicationErrorException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : ApplicationError
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat ApplicationError

createClientGeneratedIdAlreadyExistsException() public méthode

public createClientGeneratedIdAlreadyExistsException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdAlreadyExists
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdAlreadyExists

createClientGeneratedIdNotSupportedException() public méthode

public createClientGeneratedIdNotSupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported

createClientGeneratedIdRequiredException() public méthode

public createClientGeneratedIdRequiredException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdRequired
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdRequired

createDataMemberMissingException() public méthode

public createDataMemberMissingException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\DataMemberMissing
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\DataMemberMissing

createFullReplacementProhibitedException() public méthode

public createFullReplacementProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\FullReplacementProhibited
Résultat WoohooLabs\Yin\JsonApi\Exception\FullReplacementProhibited

createInclusionUnrecognizedException() public méthode

public createInclusionUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $unrecognizedInclusions ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$unrecognizedInclusions array
Résultat WoohooLabs\Yin\JsonApi\Exception\InclusionUnrecognized

createInclusionUnsupportedException() public méthode

public createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported

createMediaTypeUnacceptableException() public méthode

public createMediaTypeUnacceptableException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable

createMediaTypeUnsupportedException() public méthode

public createMediaTypeUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported

createQueryParamUnrecognizedException() public méthode

public createQueryParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $queryParamName ) : WoohooLabs\Yin\JsonApi\Exception\QueryParamUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\QueryParamUnrecognized

createRelationshipNotExists() public méthode

public createRelationshipNotExists ( string $relationship ) : Exception
$relationship string
Résultat Exception

createRelationshipTypeInappropriateException() public méthode

public createRelationshipTypeInappropriateException ( $relationshipName, $currentRelationshipType, $expectedRelationshipType ) : WoohooLabs\Yin\JsonApi\Exception\RelationshipTypeInappropriate
Résultat WoohooLabs\Yin\JsonApi\Exception\RelationshipTypeInappropriate

createRemovalProhibitedException() public méthode

public createRemovalProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\RemovalProhibited
Résultat WoohooLabs\Yin\JsonApi\Exception\RemovalProhibited

createRequestBodyInvalidJsonApiException() public méthode

public createRequestBodyInvalidJsonApiException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJsonApi
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$validationErrors array
Résultat WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJsonApi

createRequestBodyInvalidJsonException() public méthode

public createRequestBodyInvalidJsonException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJson
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJson

createResourceIdInvalidException() public méthode

public createResourceIdInvalidException ( $id ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdInvalid
Résultat WoohooLabs\Yin\JsonApi\Exception\ResourceIdInvalid

createResourceIdMissingException() public méthode

public createResourceIdMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdMissing
Résultat WoohooLabs\Yin\JsonApi\Exception\ResourceIdMissing

createResourceIdentifierIdMissing() public méthode

public createResourceIdentifierIdMissing ( array $resourceIdentifier ) : Exception
$resourceIdentifier array
Résultat Exception

createResourceIdentifierTypeMissing() public méthode

public createResourceIdentifierTypeMissing ( array $resourceIdentifier ) : Exception
$resourceIdentifier array
Résultat Exception

createResourceNotFoundException() public méthode

public createResourceNotFoundException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ResourceNotFound
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\ResourceNotFound

createResourceTypeMissingException() public méthode

public createResourceTypeMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeMissing
Résultat WoohooLabs\Yin\JsonApi\Exception\ResourceTypeMissing

createResourceTypeUnacceptableException() public méthode

public createResourceTypeUnacceptableException ( $currentType, array $acceptedTypes ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeUnacceptable
$acceptedTypes array
Résultat WoohooLabs\Yin\JsonApi\Exception\ResourceTypeUnacceptable

createResponseBodyInvalidJsonApiException() public méthode

public createResponseBodyInvalidJsonApiException ( Psr\Http\Message\ResponseInterface $response, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJsonApi
$response Psr\Http\Message\ResponseInterface
$validationErrors array
Résultat WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJsonApi

createResponseBodyInvalidJsonException() public méthode

public createResponseBodyInvalidJsonException ( Psr\Http\Message\ResponseInterface $response, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJson
$response Psr\Http\Message\ResponseInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJson

createSortParamUnrecognizedException() public méthode

public createSortParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $paramName ) : WoohooLabs\Yin\JsonApi\Exception\SortParamUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\SortParamUnrecognized

createSortingUnsupportedException() public méthode

public createSortingUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\SortingUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat WoohooLabs\Yin\JsonApi\Exception\SortingUnsupported