Exception: Expressir::FileNotFoundError
- Defined in:
- lib/expressir/errors.rb
Overview
File/Resource Errors
Direct Known Subclasses
ManifestNotFoundError, PackageNotFoundError, SchemaNotFoundError
Instance Attribute Summary collapse
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#file_type ⇒ Object
readonly
Returns the value of attribute file_type.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(file_path, file_type: nil) ⇒ FileNotFoundError
constructor
A new instance of FileNotFoundError.
Constructor Details
#initialize(file_path, file_type: nil) ⇒ FileNotFoundError
Returns a new instance of FileNotFoundError.
18 19 20 21 22 |
# File 'lib/expressir/errors.rb', line 18 def initialize(file_path, file_type: nil) @file_path = file_path @file_type = file_type super("#{file_type || 'File'} not found: #{file_path}") end |
Instance Attribute Details
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
16 17 18 |
# File 'lib/expressir/errors.rb', line 16 def file_path @file_path end |
#file_type ⇒ Object (readonly)
Returns the value of attribute file_type.
16 17 18 |
# File 'lib/expressir/errors.rb', line 16 def file_type @file_type end |