Sha256: ec3eb5461e1c8212cd5d5a64e8d880e99cebfc233c16fc9173d8adce80c2789d
Contents?: true
Size: 1.09 KB
Versions: 47
Compression:
Stored size: 1.09 KB
Contents
module Scrivito # @api public class ScrivitoError < StandardError end class ApplicationError < ScrivitoError def http_code 412 end def as_json {message: message, message_for_editor: message} end end # @api public class ResourceNotFound < ScrivitoError def http_code 404 end def as_json {message: message} end end # @api public class ObjClassNotFound < ResourceNotFound end # this error is raised if scrivito detects an internal problem. # these errors should never occur when using the public api of the SDK. class InternalError < ScrivitoError end # @api public class TransformationError < ScrivitoError attr_reader :code def initialize(message, code) @code = code super(message) end end # @api public class TransformationSourceError < TransformationError end # @api public class TransformationDefinitionError < TransformationError end class TransferModificationsError < ScrivitoError end class TransferModificationsModifiedError < TransferModificationsError end class TransferModificationsConflictError < TransferModificationsError end end # module Scrivito
Version data entries
47 entries across 47 versions & 1 rubygems