Sha256: 40d5762b1a8f88b3eb45d1554a6cb020103ac3762d81dbbc5ab07b8bad7cd406

Contents?: true

Size: 690 Bytes

Versions: 3

Compression:

Stored size: 690 Bytes

Contents

module Scrivito

# @api public
class ScrivitoError < StandardError
end

# @api public
class ResourceNotFound < ScrivitoError
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 beta
class TransformationError < ScrivitoError
  attr_reader :code

  def initialize(message, code)
    @code = code
    super(message)
  end
end

# @api beta
class TransformationSourceError < TransformationError
end

# @api beta
class TransformationDefinitionError < TransformationError
end

end # module Scrivito

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scrivito_sdk-0.66.0 lib/scrivito/errors.rb
scrivito_sdk-0.66.0.rc2 lib/scrivito/errors.rb
scrivito_sdk-0.66.0.rc1 lib/scrivito/errors.rb