vmfloaty/lib/vmfloaty/errors.rb
Brian Cain c62c1c7083 (#33) Handle more exceptions in vmfloaty command class
This commit adds more handling to the vmfloaty command class that deals
with exceptions thrown from the Pooler class.
2016-09-24 13:29:43 -07:00

17 lines
356 B
Ruby

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