require 'human_error/errors/crud_error'
require 'human_error/errors/request_error'

class   HumanError
module  Errors
class   ResourcePersistenceError < RequestError
  include CrudError

  attr_accessor :errors,
                :attributes

  def http_status
    422
  end

  def knowledgebase_article_id
    '1234567890'
  end

  def developer_message
    "One or more of the attributes on the #{resource_name} you attempted to #{action} is invalid."
  end

  def developer_details
    {
      'errors'     => errors,
      'attributes' => attributes,
    }
  end

  def friendly_message
    "Sorry! We had a problem when tried to #{action} that #{resource_name}."
  end
end
end
end

require 'human_error/errors/crud_error'
require 'human_error/errors/request_error'

class   HumanError
module  Errors
class   ResourcePersistenceError < RequestError
  include CrudError

  attr_accessor :errors,
                :attributes

  def http_status
    422
  end

  def developer_message
    "One or more of the attributes on the #{resource_name} you attempted to #{action} is invalid."
  end

  def developer_details
    {
      'errors'     => errors,
      'attributes' => attributes,
    }
  end

  def friendly_message
    "Sorry! We had a problem when tried to #{action} that #{resource_name}."
  end
end
end
end

Remove a manual reference to `knowledgebase_article_id`
Bugfix: Remove a manual reference to `knowledgebase_article_id`

We changed this a while back to be performed in the base class, we just missed
removing this one.

--------------------------------------------------------------------------------
Change-Id:     I98ec5a71a704fbc7e98ac0bc97816fd2368bad02
Signed-off-by: Jeff Felchner <8a84c204e2d4c387d61d20f7892a2bbbf0bc8ae8@thekompanee.com>
