Exception: Expressir::FileNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/expressir/errors.rb

Overview

File/Resource Errors

Instance Attribute Summary collapse

Attributes inherited from Error

#details

Instance Method Summary collapse

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_pathObject (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_typeObject (readonly)

Returns the value of attribute file_type.



16
17
18
# File 'lib/expressir/errors.rb', line 16

def file_type
  @file_type
end