Skip to content

Instantly share code, notes, and snippets.

@sbellware
Created December 21, 2018 23:55
Show Gist options
  • Save sbellware/fa5d87d2cd05a878c3afc663a3743f58 to your computer and use it in GitHub Desktop.
Save sbellware/fa5d87d2cd05a878c3afc663a3743f58 to your computer and use it in GitHub Desktop.
class Consumer
include Consumer::Postgres
handler SomeHandler
handler SomeOtherHandler
def error_raised(error, message_data)
if error.instance_of?(MessageStore::ExpectedVersion::Error)
self.(message_data)
else
raise error
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment