Use Class.new(SuperClass) to define an empty custom error class

parent 30794972
module Github module Github
class Error < StandardError Error = Class.new(StandardError)
end RepositoryFetchError = Class.new(Github::Error)
class RepositoryFetchError < Error; end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment