mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
This commit adds more handling to the vmfloaty command class that deals with exceptions thrown from the Pooler class.
17 lines
356 B
Ruby
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
|