Exception catching.

master
Luka Vandervelden 2019-10-24 12:59:19 +02:00
parent 925a8ee0fd
commit 46eb8fa9c4
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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