From: Michal Fojtik <[email protected]>
Signed-off-by: Michal fojtik <[email protected]> --- server/lib/cimi/model/base.rb | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/server/lib/cimi/model/base.rb b/server/lib/cimi/model/base.rb index 4fa9014..0088b8b 100644 --- a/server/lib/cimi/model/base.rb +++ b/server/lib/cimi/model/base.rb @@ -66,6 +66,15 @@ require 'json' # [array(name, opts, &block)] # An array of structured subobjects; the block defines the schema of # the subobjects. + +class CIMI::Model::NotFound < StandardError + attr_accessor :code + def initialize + super("Requested Entity Not Found") + self.code = 404 + end +end + class CIMI::Model::Base # -- 1.7.4.4
