Sha256: d0ad03e20f25f2598b8e97fd1df239df9e89bba02db6d64054be65ffb885cb8e
Contents?: true
Size: 981 Bytes
Versions: 3
Compression:
Stored size: 981 Bytes
Contents
# frozen_string_literal: true module Frontman class Error < StandardError; end class DuplicateResourceError < StandardError 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 end class ExistingRedirectError < StandardError def self.create(resource, url) new("Unable to add #{resource.file_path} as #{url}. A redirect already exists for this URL.") end end class ExistingResourceError < StandardError def self.create(url, resource) new("Unable to redirect for #{url}, the resource #{resource.file_path} already exists on this URL") end end class ServerPortError < StandardError def initialize super('Server failed to attach to port. Please shutdown some processes or increase the :port_retries configuration variable.') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frontman-ssg-0.1.1 | lib/frontman/errors.rb |
frontman-ssg-0.1.0 | lib/frontman/errors.rb |
frontman-ssg-0.0.4 | lib/frontman/errors.rb |