PHP Class Nelmio\Alice\Throwable\Exception\Generator\Hydrator\HydrationExceptionFactory

Show file Open project: nelmio/alice Class Usage Examples

Public Methods

Method Description
create ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous ) : HydrationException
createForCouldNotHydrateObjectWithProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : NoSuchPropertyException
createForInaccessibleProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : InaccessiblePropertyException
createForInvalidProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : InvalidArgumentException

Method Details

create() public static method

public static create ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous ) : HydrationException
$object Nelmio\Alice\ObjectInterface
$property Nelmio\Alice\Definition\Property
$code integer
$previous Throwable
return HydrationException

createForCouldNotHydrateObjectWithProperty() public static method

public static createForCouldNotHydrateObjectWithProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : NoSuchPropertyException
$object Nelmio\Alice\ObjectInterface
$property Nelmio\Alice\Definition\Property
$code integer
$previous Throwable
return NoSuchPropertyException

createForInaccessibleProperty() public static method

public static createForInaccessibleProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : InaccessiblePropertyException
$object Nelmio\Alice\ObjectInterface
$property Nelmio\Alice\Definition\Property
$code integer
$previous Throwable
return InaccessiblePropertyException

createForInvalidProperty() public static method

public static createForInvalidProperty ( Nelmio\Alice\ObjectInterface $object, Property $property, integer $code, Throwable $previous = null ) : InvalidArgumentException
$object Nelmio\Alice\ObjectInterface
$property Nelmio\Alice\Definition\Property
$code integer
$previous Throwable
return InvalidArgumentException