Skip to content

Instantly share code, notes, and snippets.

@tjsingleton
Created November 19, 2010 19:01
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 tjsingleton/706963 to your computer and use it in GitHub Desktop.
Save tjsingleton/706963 to your computer and use it in GitHub Desktop.
Is there a better way to do this?
class CustomError < StandardError
def initialize(message = nil)
message ||= "Default message."
super(message)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment