Exception: Openphar::Errors::MonographNotFoundError

Inherits:
Openphar::Error
  • Object
show all
Defined in:
lib/openphar/errors/monograph_not_found_error.rb

Overview

Raised when a monograph cannot be found.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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