Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle errors#5

Merged
samnotsowise merged 3 commits into
masterGCDTech/Module.Cyclops:masterfrom
feature/HandleErrorsGCDTech/Module.Cyclops:feature/HandleErrorsCopy head branch name to clipboard
Nov 8, 2018
Merged

Handle errors#5
samnotsowise merged 3 commits into
masterGCDTech/Module.Cyclops:masterfrom
feature/HandleErrorsGCDTech/Module.Cyclops:feature/HandleErrorsCopy head branch name to clipboard

Conversation

@catherineGCD

Copy link
Copy Markdown
Contributor

Handing error responses in one place, and logging them!


$useCase = new PushDeletedToCyclopsUseCase($service);
$useCase->execute($list);
$useCase->execute($list, function() {});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

i find it a cleaner/more common pattern to make callbacks option. Just default it to null and wrap the call in an in

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

🎉Updated 🎉

@samnotsowise samnotsowise merged commit e28fdd4 into master Nov 8, 2018
@samnotsowise samnotsowise deleted the feature/HandleErrors branch November 8, 2018 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.