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

parent 30794972
module Github
class Error < StandardError
end
class RepositoryFetchError < Error; end
Error = Class.new(StandardError)
RepositoryFetchError = Class.new(Github::Error)
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