Sha256: b1aa85d2bf053c47de082a5608bb19b70b81589f2612d201c8c4605406fe5a8c

Contents?: true

Size: 481 Bytes

Versions: 19

Compression:

Stored size: 481 Bytes

Contents

module Cms::Fortress::Error
  def self.log_error(name, message)
    Rails.logger.fatal("[ERROR:] in #{name} with message: #{message}\n\n")
  end

  class MissingRoleConfigFile < StandardError
    def initialize
      Cms::Fortress::Error.log_error(self, "missing the roles.yml file in config/roles.yml")
    end
  end

  class MissingSettingsFile < StandardError
    def initialize
      Cms::Fortress::Error.log_error(self, "missing cms-fortress settings file")
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
cms-fortress-1.3.15 app/models/cms/fortress/error.rb
cms-fortress-1.3.14 app/models/cms/fortress/error.rb
cms-fortress-1.3.13 app/models/cms/fortress/error.rb
cms-fortress-1.3.12 app/models/cms/fortress/error.rb
cms-fortress-1.3.11 app/models/cms/fortress/error.rb
cms-fortress-1.3.10 app/models/cms/fortress/error.rb
cms-fortress-1.3.9 app/models/cms/fortress/error.rb
cms-fortress-1.3.8 app/models/cms/fortress/error.rb
cms-fortress-1.3.7 app/models/cms/fortress/error.rb
cms-fortress-1.3.6 app/models/cms/fortress/error.rb
cms-fortress-1.3.5 app/models/cms/fortress/error.rb
cms-fortress-1.3.4 app/models/cms/fortress/error.rb
cms-fortress-1.3.3 app/models/cms/fortress/error.rb
cms-fortress-1.3.2 app/models/cms/fortress/error.rb
cms-fortress-1.3.1 app/models/cms/fortress/error.rb
cms-fortress-1.3.0 app/models/cms/fortress/error.rb
cms-fortress-1.3.0.rc3 app/models/cms/fortress/error.rb
cms-fortress-1.3.0.rc2 app/models/cms/fortress/error.rb
cms-fortress-1.3.0.rc1 app/models/cms/fortress/error.rb