Sha256: 23903cef60a0d8f961db39615f20888519fbfe28603e37159bf0922133ec22c6

Contents?: true

Size: 697 Bytes

Versions: 2

Compression:

Stored size: 697 Bytes

Contents

module Protoable

  # = Protoable errors
  #
  # Generic Protoable exception class
  class ProtoableError < StandardError
  end

  # Raised by Protoable.protoable_attribute when the convert method given is
  # not callable.
  class AttributeConverterError < ProtoableError
  end

  # Raised by Protoable.attribute_from_proto when the transformer method
  # given is not callable.
  class AttributeTransformerError < ProtoableError
  end

  # Raised by Protoable.convert_field when the convert method
  # given not callable.
  class FieldConverterError < ProtoableError
  end

  # Raised by Protoable.field_scope when given scope is not defined.
  class SearchScopeError < ProtoableError
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
protobuf-activerecord-1.1.1 lib/protobuf/activerecord/protoable/errors.rb
protobuf-activerecord-1.1.0 lib/protoable/errors.rb