Skip to content

Add component backtrace on invalid argument exception #139

@sascha-egerer

Description

@sascha-egerer

If an invalid argument is passed to a component an exception is thrown:

The argument "image" defined in "Foo\Bar\FluidComponents\Component\Image" has declared type "SMS\FluidComponents\Domain\Model\Image", but "NULL" was give

Sometimes it's really hard to figure out where the error occurs. It would be very helpful to have a component stack backtrace in the exception.
The argument "image" defined in "Foo\Bar\FluidComponents\Component\Image" has declared type "SMS\FluidComponents\Domain\Model\Image", but "NULL" was give in Foo\Bar\FluidComponents\Module\Layout\Page\Default -> Foo\Bar\FluidComponents\Module\Footer -> Foo\Bar\FluidComponents\Module\LogoBox -> Foo\Bar\FluidComponents\Component\Link -> Foo\Bar\FluidComponents\Component\Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions