PHP Класс WoohooLabs\Yin\JsonApi\Exception\DefaultExceptionFactory

Наследование: implements WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

createApplicationErrorException() публичный Метод

public createApplicationErrorException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : ApplicationError
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат ApplicationError

createClientGeneratedIdAlreadyExistsException() публичный Метод

public createClientGeneratedIdAlreadyExistsException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdAlreadyExists
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdAlreadyExists

createClientGeneratedIdNotSupportedException() публичный Метод

public createClientGeneratedIdNotSupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $currentId ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdNotSupported

createClientGeneratedIdRequiredException() публичный Метод

public createClientGeneratedIdRequiredException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdRequired
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\ClientGeneratedIdRequired

createDataMemberMissingException() публичный Метод

public createDataMemberMissingException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\DataMemberMissing
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\DataMemberMissing

createFullReplacementProhibitedException() публичный Метод

public createFullReplacementProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\FullReplacementProhibited
Результат WoohooLabs\Yin\JsonApi\Exception\FullReplacementProhibited

createInclusionUnrecognizedException() публичный Метод

public createInclusionUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $unrecognizedInclusions ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$unrecognizedInclusions array
Результат WoohooLabs\Yin\JsonApi\Exception\InclusionUnrecognized

createInclusionUnsupportedException() публичный Метод

public createInclusionUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\InclusionUnsupported

createMediaTypeUnacceptableException() публичный Метод

public createMediaTypeUnacceptableException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnacceptable

createMediaTypeUnsupportedException() публичный Метод

public createMediaTypeUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $mediaTypeName ) : WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\MediaTypeUnsupported

createQueryParamUnrecognizedException() публичный Метод

public createQueryParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $queryParamName ) : WoohooLabs\Yin\JsonApi\Exception\QueryParamUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\QueryParamUnrecognized

createRelationshipNotExists() публичный Метод

public createRelationshipNotExists ( string $relationship ) : Exception
$relationship string
Результат Exception

createRelationshipTypeInappropriateException() публичный Метод

public createRelationshipTypeInappropriateException ( $relationshipName, $currentRelationshipType, $expectedRelationshipType ) : WoohooLabs\Yin\JsonApi\Exception\RelationshipTypeInappropriate
Результат WoohooLabs\Yin\JsonApi\Exception\RelationshipTypeInappropriate

createRemovalProhibitedException() публичный Метод

public createRemovalProhibitedException ( $relationshipName ) : WoohooLabs\Yin\JsonApi\Exception\RemovalProhibited
Результат WoohooLabs\Yin\JsonApi\Exception\RemovalProhibited

createRequestBodyInvalidJsonApiException() публичный Метод

public createRequestBodyInvalidJsonApiException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJsonApi
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
$validationErrors array
Результат WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJsonApi

createRequestBodyInvalidJsonException() публичный Метод

public createRequestBodyInvalidJsonException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJson
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\RequestBodyInvalidJson

createResourceIdInvalidException() публичный Метод

public createResourceIdInvalidException ( $id ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdInvalid
Результат WoohooLabs\Yin\JsonApi\Exception\ResourceIdInvalid

createResourceIdMissingException() публичный Метод

public createResourceIdMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceIdMissing
Результат WoohooLabs\Yin\JsonApi\Exception\ResourceIdMissing

createResourceIdentifierIdMissing() публичный Метод

public createResourceIdentifierIdMissing ( array $resourceIdentifier ) : Exception
$resourceIdentifier array
Результат Exception

createResourceIdentifierTypeMissing() публичный Метод

public createResourceIdentifierTypeMissing ( array $resourceIdentifier ) : Exception
$resourceIdentifier array
Результат Exception

createResourceNotFoundException() публичный Метод

public createResourceNotFoundException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\ResourceNotFound
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\ResourceNotFound

createResourceTypeMissingException() публичный Метод

public createResourceTypeMissingException ( ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeMissing
Результат WoohooLabs\Yin\JsonApi\Exception\ResourceTypeMissing

createResourceTypeUnacceptableException() публичный Метод

public createResourceTypeUnacceptableException ( $currentType, array $acceptedTypes ) : WoohooLabs\Yin\JsonApi\Exception\ResourceTypeUnacceptable
$acceptedTypes array
Результат WoohooLabs\Yin\JsonApi\Exception\ResourceTypeUnacceptable

createResponseBodyInvalidJsonApiException() публичный Метод

public createResponseBodyInvalidJsonApiException ( Psr\Http\Message\ResponseInterface $response, array $validationErrors, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJsonApi
$response Psr\Http\Message\ResponseInterface
$validationErrors array
Результат WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJsonApi

createResponseBodyInvalidJsonException() публичный Метод

public createResponseBodyInvalidJsonException ( Psr\Http\Message\ResponseInterface $response, $lintMessage, $includeOriginalBody ) : WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJson
$response Psr\Http\Message\ResponseInterface
Результат WoohooLabs\Yin\JsonApi\Exception\ResponseBodyInvalidJson

createSortParamUnrecognizedException() публичный Метод

public createSortParamUnrecognizedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request, $paramName ) : WoohooLabs\Yin\JsonApi\Exception\SortParamUnrecognized
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\SortParamUnrecognized

createSortingUnsupportedException() публичный Метод

public createSortingUnsupportedException ( WoohooLabs\Yin\JsonApi\Request\RequestInterface $request ) : WoohooLabs\Yin\JsonApi\Exception\SortingUnsupported
$request WoohooLabs\Yin\JsonApi\Request\RequestInterface
Результат WoohooLabs\Yin\JsonApi\Exception\SortingUnsupported