Better exception messages #143

Closed
mnapoli opened this Issue Jan 9, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@mnapoli
Member

mnapoli commented Jan 9, 2014

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'
)

@mnapoli mnapoli added this to the 4.1 milestone Feb 5, 2014

@mnapoli

This comment has been minimized.

Show comment
Hide comment
@mnapoli

mnapoli Feb 22, 2014

Member

Implemented in 4.1.

Member

mnapoli commented Feb 22, 2014

Implemented in 4.1.

@mnapoli mnapoli closed this Feb 22, 2014

@mnapoli mnapoli referenced this issue Feb 22, 2014

Merged

4.1 #155

8 of 8 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment