Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class MyAPINotAvailable < StandardError
attr_accessor :message
def initialize(message)
@message = "Failed to connect to MyAPI: #{message}"
end
end
raise MyAPINotAvailable.new "Could not update Foo"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment