vmfloaty/lib/vmfloaty/errors.rb
Brian Cain 8da1deaf6b (#33) Handle Auth class errors
This commit updates the Auth class to properly raise an error when
something goes wrong. It also updates the vmpooler command class to
handle when those errors get raised.
2016-09-24 11:11:14 -07:00

11 lines
230 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