Exception: CleverSequence::PostgresBackend::SequenceNotFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- CleverSequence::PostgresBackend::SequenceNotFoundError
- Defined in:
- lib/demo_mode/clever_sequence/postgres_backend.rb
Instance Attribute Summary collapse
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#sequence_name ⇒ Object
readonly
Returns the value of attribute sequence_name.
Instance Method Summary collapse
-
#initialize(sequence_name:, klass:, attribute:) ⇒ SequenceNotFoundError
constructor
A new instance of SequenceNotFoundError.
Constructor Details
#initialize(sequence_name:, klass:, attribute:) ⇒ SequenceNotFoundError
Returns a new instance of SequenceNotFoundError.
10 11 12 13 14 15 16 17 18 |
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 10 def initialize(sequence_name:, klass:, attribute:) @sequence_name = sequence_name @klass = klass @attribute = attribute super( "Sequence '#{sequence_name}' not found for #{klass.name}##{attribute}. " ) end |
Instance Attribute Details
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
8 9 10 |
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8 def attribute @attribute end |
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
8 9 10 |
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8 def klass @klass end |
#sequence_name ⇒ Object (readonly)
Returns the value of attribute sequence_name.
8 9 10 |
# File 'lib/demo_mode/clever_sequence/postgres_backend.rb', line 8 def sequence_name @sequence_name end |