Use Class.new(SuperClass) to define an empty custom error class
This commit is contained in:
parent
30794972f4
commit
dd1157c80b
1 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
||||||
module Github
|
module Github
|
||||||
class Error < StandardError
|
Error = Class.new(StandardError)
|
||||||
end
|
RepositoryFetchError = Class.new(Github::Error)
|
||||||
|
|
||||||
class RepositoryFetchError < Error; end
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue