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