Sha256: 3148376074206a8599d7cdc9374b24ca386f7fc4635821d0d2aa5636487dd207

Contents?: true

Size: 171 Bytes

Versions: 2

Compression:

Stored size: 171 Bytes

Contents

module Scrivito

# @api public
class ResourceNotFound < ScrivitoError
  def http_code
    404
  end

  def as_json
    {message: message}
  end
end

end # module Scrivito

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
scrivito_sdk-1.18.0 app/cms/scrivito/resource_not_found.rb
scrivito_sdk-1.18.0.rc1 app/cms/scrivito/resource_not_found.rb