Exception: Ecoportal::API::Common::BaseModel::UnlinkedModel

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ecoportal/api/common/base_model.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = "Something went wrong when linking the document.", from: nil, key: nil) ⇒ UnlinkedModel

Returns a new instance of UnlinkedModel.



7
8
9
10
11
# File 'lib/ecoportal/api/common/base_model.rb', line 7

def initialize(msg = "Something went wrong when linking the document.", from: nil, key: nil)
  msg << " From: #{from}." if from
  msg << " key: #{key}."   if key
  super(msg)
end