PHP 클래스 WoohooLabs\Yin\JsonApi\Exception\DefaultExceptionFactory

상속: implements WoohooLabs\Yin\JsonApi\Exception\ExceptionFactoryInterface
파일 보기 프로젝트 열기: woohoolabs/yin

공개 메소드들

메소드 설명
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