Exception: Frontman::DuplicateResourceError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/frontman/errors.rb

Class Method Summary collapse

Class Method Details

.create(resource, url, existing_resource) ⇒ Object



7
8
9
10
# File 'lib/frontman/errors.rb', line 7

def self.create(resource, url, existing_resource)
  new("Unable to add #{resource.file_path} as #{url}.
       Resource #{existing_resource.file_path} already exists on this URL.")
end