vmfloaty/lib/vmfloaty/errors.rb

25 lines
494 B
Ruby

# frozen_string_literal: true
class AuthError < StandardError
def initialize(msg = 'Could not authenticate to pooler')
super
end
end
class TokenError < StandardError
def initialize(msg = 'Could not do operation with token provided')
super
end
end
class MissingParamError < StandardError
def initialize(msg = 'Argument provided to function is missing')
super
end
end
class ModifyError < StandardError
def initialize(msg = 'Could not modify VM')
super
end
end