Exception catching.
This commit is contained in:
parent
925a8ee0fd
commit
46eb8fa9c4
@ -63,7 +63,7 @@ class Environment
|
||||
_def = @@all.find &.name.==(name)
|
||||
|
||||
if _def.nil?
|
||||
raise Exception.new "Environment '#{name}' does not exist."
|
||||
raise ::Service::Exception.new "Environment '#{name}' does not exist."
|
||||
end
|
||||
|
||||
_def
|
||||
|
@ -75,7 +75,7 @@ class ServiceDefinition
|
||||
_def = @@all.find &.name.==(name)
|
||||
|
||||
if _def.nil?
|
||||
raise Exception.new "Service '#{name}' does not exist."
|
||||
raise ::Service::Exception.new "Service '#{name}' does not exist."
|
||||
end
|
||||
|
||||
_def
|
||||
|
Loading…
Reference in New Issue
Block a user