Skip to content

Instantly share code, notes, and snippets.

@lyndsysimon
Created October 7, 2016 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lyndsysimon/516346899bb516d2aa350953e4579136 to your computer and use it in GitHub Desktop.
Save lyndsysimon/516346899bb516d2aa350953e4579136 to your computer and use it in GitHub Desktop.
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