Sha256: ec4f343abd660b49dbd8c084b507f2c3f88145b0ee3aef26a97b3dbb9a073cbe

Contents?: true

Size: 186 Bytes

Versions: 2

Compression:

Stored size: 186 Bytes

Contents

module Scrivito

class ApplicationError < ScrivitoError
  def http_code
    412
  end

  def as_json
    {message: message, message_for_editor: 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/application_error.rb
scrivito_sdk-1.18.0.rc1 app/cms/scrivito/application_error.rb