Skip to content
This repository was archived by the owner on Jan 16, 2018. It is now read-only.

adjust BatchResult to interface cleanup #12

Merged
merged 1 commit into from
Oct 23, 2015
Merged

adjust BatchResult to interface cleanup #12

merged 1 commit into from
Oct 23, 2015

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Oct 23, 2015

depends on php-http/httplug#73

@dbu
Copy link
Contributor Author

dbu commented Oct 23, 2015

tests will fail until php-http/httplug#73 is merged.

try {
return $this->exceptions[$request];
} catch (\UnexpectedValueException $e) {
throw new UnexpectedValueException('Request not found', $e->getCode(), $e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this exception an SPL UnexpectedException as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i only reordered this method, did not change any content)

seems to be the same yes. but the exception message will become more specific like this, which seems to be worth it.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I did this rethrow thing in order to hide the original Object not found message. But the question is: If it is the same, why isn't it used from the root namespace as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have a use UnexpectedValueException in this file. probably against conventions, i can remove it and use \UnexpectedValueException everywhere. ok?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@dbu dbu force-pushed the adjust-batchresult branch from 68986c7 to 1c6d0e1 Compare October 23, 2015 16:03
dbu added a commit that referenced this pull request Oct 23, 2015
adjust BatchResult to interface cleanup
@dbu dbu merged commit bb41aac into master Oct 23, 2015
@dbu dbu deleted the adjust-batchresult branch October 23, 2015 17:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants