Skip to content

Better exception messages #143

@mnapoli

Description

@mnapoli

The messages for when an exception happen while building an object are always complex.

A way to help debug would be to dump the definition, e.g. this message:

Error while injecting 'ACLManager' in OrganizationController::aclManager.
The parameter 'contactEmail' of UserService::__construct has no value defined or guessable

Would become:

Error while injecting 'ACLManager' in OrganizationController::aclManager.
The parameter 'contactEmail' of UserService::__construct has no value defined or guessable.

Definition of UserService:

__construct(
    $mailer = entry 'Mailer'
    $contactEmail = UNKNOWN
)
setFoo(
    $bar = entry 'FooBar'
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions