Created
October 7, 2016 14:39
-
-
Save lyndsysimon/516346899bb516d2aa350953e4579136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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