mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-30 22:50:10 +03:00
L #-: Remove unneeded initializations
This commit is contained in:
parent
91e61b0fea
commit
3e098a53fd
@ -21,37 +21,21 @@ module OneCfg::Config::Exception
|
||||
# OneCfg critical error, which shouldn't happen
|
||||
class FatalError < OneCfg::Exception::Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Unsupported OpenNebula version exception
|
||||
class UnsupportedVersion < OneCfg::Exception::Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Invalid file structure.
|
||||
class StructureError < OneCfg::Exception::Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# OneCfg config exception when content is not initialized
|
||||
class NoContent < OneCfg::Exception::Generic
|
||||
|
||||
def initialize
|
||||
super('Uninitialized content')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
### Patch Exceptions #############################
|
||||
@ -62,10 +46,6 @@ module OneCfg::Config::Exception
|
||||
# Failed diff operation
|
||||
attr_accessor :data
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# Patch exception when value can't be placed on desired place
|
||||
|
@ -43,19 +43,11 @@ module OneCfg
|
||||
# rubocop:disable Lint/UselessMethodDefinition
|
||||
class FileReadError < Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
# OneCfg config exception on file write
|
||||
class FileWriteError < Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
# rubocop:enable Lint/UselessMethodDefinition
|
||||
|
||||
@ -63,10 +55,6 @@ module OneCfg
|
||||
# rubocop:disable Lint/UselessMethodDefinition
|
||||
class FileParseError < Generic
|
||||
|
||||
def initialize(text)
|
||||
super(text)
|
||||
end
|
||||
|
||||
end
|
||||
# rubocop:enable Lint/UselessMethodDefinition
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user