Test Setup Failed
Push — master ( 9b61f8...188b46 )
by Steven
05:50
created

FileNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A to_s() 0 3 1
1
# frozen_string_literal: true
2
3
# class to implement friendly exception for file not found rather than ErrNoEnt
4
class FileNotFoundException < StandardError
5
  def to_s
6
    'File not found'
7
  end
8
end
9