Sha256: 4331d1dee7284964ef94af13dbedfd0a323890cde2c7780cee33b8648a30f486
Contents?: true
Size: 581 Bytes
Versions: 1
Compression:
Stored size: 581 Bytes
Contents
require "i18n" module Shamu module JsonApi # A generic error class for problems with shamu JSON API. class Error < Shamu::Error private def translation_scope super.dup.insert( 1, :json_api ) end end # Raised if an {ResourceBuilder#identifier} was not built. class IncompleteResourceError < Error def initialize( message = :incomplete_resource ) super end end class IdentifierRequiredError < Error def initialize( message = :identifier_required ) super end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shamu-0.0.3 | lib/shamu/json_api/error.rb |