PHP Interface WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface

Afficher le fichier Open project: woohoolabs/yin Interface Usage Examples

Méthodes publiques

Méthode Description
createApplicationErrorException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
createClientGeneratedIdAlreadyExistsException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $currentId ) : Exception
createClientGeneratedIdNotSupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $currentId ) : Exception
createClientGeneratedIdRequiredException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
createDataMemberMissingException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
createFullReplacementProhibitedException ( string $relationshipName ) : Exception
createInclusionUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $unrecognizedInclusions ) : Exception
createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
createMediaTypeUnacceptableException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $mediaTypeName ) : Exception
createMediaTypeUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $mediaTypeName ) : Exception
createQueryParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $queryParamName ) : Exception
createRelationshipNotExists ( string $relationship ) : Exception
createRelationshipTypeInappropriateException ( string $relationshipName, string $currentRelationshipType, string $expectedRelationshipType ) : Exception
createRemovalProhibitedException ( string $relationshipName ) : Exception
createRequestBodyInvalidJsonApiException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $validationErrors, boolean $includeOriginalBody )
createRequestBodyInvalidJsonException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $lintMessage, boolean $includeOriginalBody )
createResourceIdInvalidException ( string $id ) : Exception
createResourceIdMissingException ( ) : Exception
createResourceIdentifierIdMissing ( array $resourceIdentifier ) : Exception
createResourceIdentifierTypeMissing ( array $resourceIdentifier ) : Exception
createResourceNotFoundException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception
createResourceTypeMissingException ( ) : Exception
createResourceTypeUnacceptableException ( string $currentType, array $acceptedTypes ) : Exception
createResponseBodyInvalidJsonApiException ( Psr\Http\Message\ResponseInterface $response, array $validationErrors, boolean $includeOriginalBody ) : Exception
createResponseBodyInvalidJsonException ( Psr\Http\Message\ResponseInterface $response, string $lintMessage, boolean $includeOriginalBody ) : Exception
createSortParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $paramName ) : Exception
createSortingUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : Exception

Method Details

createApplicationErrorException() public méthode

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

createClientGeneratedIdAlreadyExistsException() public méthode

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

createClientGeneratedIdNotSupportedException() public méthode

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

createClientGeneratedIdRequiredException() public méthode

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

createDataMemberMissingException() public méthode

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

createFullReplacementProhibitedException() public méthode

public createFullReplacementProhibitedException ( string $relationshipName ) : Exception
$relationshipName string
Résultat Exception

createInclusionUnrecognizedException() public méthode

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

createInclusionUnsupportedException() public méthode

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

createMediaTypeUnacceptableException() public méthode

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

createMediaTypeUnsupportedException() public méthode

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

createQueryParamUnrecognizedException() public méthode

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

createRelationshipNotExists() public méthode

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

createRelationshipTypeInappropriateException() public méthode

public createRelationshipTypeInappropriateException ( string $relationshipName, string $currentRelationshipType, string $expectedRelationshipType ) : Exception
$relationshipName string
$currentRelationshipType string
$expectedRelationshipType string
Résultat Exception

createRemovalProhibitedException() public méthode

public createRemovalProhibitedException ( string $relationshipName ) : Exception
$relationshipName string
Résultat Exception

createRequestBodyInvalidJsonApiException() public méthode

public createRequestBodyInvalidJsonApiException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $validationErrors, boolean $includeOriginalBody )
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$validationErrors array
$includeOriginalBody boolean

createRequestBodyInvalidJsonException() public méthode

public createRequestBodyInvalidJsonException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, string $lintMessage, boolean $includeOriginalBody )
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$lintMessage string
$includeOriginalBody boolean

createResourceIdInvalidException() public méthode

public createResourceIdInvalidException ( string $id ) : Exception
$id string
Résultat Exception

createResourceIdMissingException() public méthode

public createResourceIdMissingException ( ) : Exception
Résultat Exception

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 ) : Exception
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Résultat Exception

createResourceTypeMissingException() public méthode

public createResourceTypeMissingException ( ) : Exception
Résultat Exception

createResourceTypeUnacceptableException() public méthode

public createResourceTypeUnacceptableException ( string $currentType, array $acceptedTypes ) : Exception
$currentType string
$acceptedTypes array
Résultat Exception

createResponseBodyInvalidJsonApiException() public méthode

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

createResponseBodyInvalidJsonException() public méthode

public createResponseBodyInvalidJsonException ( Psr\Http\Message\ResponseInterface $response, string $lintMessage, boolean $includeOriginalBody ) : Exception
$response Psr\Http\Message\ResponseInterface
$lintMessage string
$includeOriginalBody boolean
Résultat Exception

createSortParamUnrecognizedException() public méthode

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

createSortingUnsupportedException() public méthode

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