Exception: Lycra::MissingSubjectError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lycra/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(document = nil) ⇒ MissingSubjectError

Returns a new instance of MissingSubjectError.



6
7
8
9
10
# File 'lib/lycra/errors.rb', line 6

def initialize(document=nil)
  msg = "This document was initialized with a nil subject. Make sure you set @subject before resolving or call `super` from your initializer."

  super(msg)
end