class SequenceServer::ENOENT
Name borrowed from standard Errno::ENOENT, this class serves as a template for defining errors that mean “expected to find <entity> at <path>, but didn't”.
ENOENT
is raised if and only if an entity was set, either using CLI or config file. For instance, it's compulsory to set database_dir. But ENOENT
is not raised if database_dir is not set. ENOENT
is raised if database_dir was set, but does not exist.
Attributes
des[R]
ent[R]
Public Class Methods
new(des, ent)
click to toggle source
# File lib/sequenceserver/exceptions.rb, line 43 def initialize(des, ent) @des = des @ent = ent end
Public Instance Methods
to_s()
click to toggle source
# File lib/sequenceserver/exceptions.rb, line 50 def to_s "Could not find #{des}: #{ent}" end