Exception: Lycra::MissingSubjectError
- Inherits:
-
StandardError
- Object
- StandardError
- Lycra::MissingSubjectError
- Defined in:
- lib/lycra/errors.rb
Instance Method Summary collapse
-
#initialize(document = nil) ⇒ MissingSubjectError
constructor
A new instance of MissingSubjectError.
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 |