Exception: Openphar::Errors::MonographNotFoundError
- Inherits:
-
Openphar::Error
- Object
- StandardError
- Openphar::Error
- Openphar::Errors::MonographNotFoundError
- Defined in:
- lib/openphar/errors/monograph_not_found_error.rb
Overview
Raised when a monograph cannot be found.
Instance Attribute Summary collapse
-
#monograph_id ⇒ Object
readonly
Returns the value of attribute monograph_id.
Instance Method Summary collapse
-
#initialize(monograph_id) ⇒ MonographNotFoundError
constructor
A new instance of MonographNotFoundError.
Constructor Details
#initialize(monograph_id) ⇒ MonographNotFoundError
Returns a new instance of MonographNotFoundError.
9 10 11 12 |
# File 'lib/openphar/errors/monograph_not_found_error.rb', line 9 def initialize(monograph_id) @monograph_id = monograph_id super("Monograph not found: #{monograph_id}") end |
Instance Attribute Details
#monograph_id ⇒ Object (readonly)
Returns the value of attribute monograph_id.
7 8 9 |
# File 'lib/openphar/errors/monograph_not_found_error.rb', line 7 def monograph_id @monograph_id end |