vmfloaty/lib/vmfloaty/errors.rb
Brian Cain 05e9d5a0cc (#32) Handle vmpooler responses when token is invalid
This commit adds an errors class to handle when pooler tokens are
invalid. The retrieve method in Pooler will raise an AuthError if it
gets an HTTP 401 from the vmpooler.
2016-09-24 10:22:48 -07:00

5 lines
109 B
Ruby

class AuthError < StandardError
def initialize(msg="Could not authenticate to pooler")
super
end
end