Test Setup Failed
Push — master ( 525152...2046b9 )
by Steven
01:27
created

MissingTableNameException.to_s()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
1
# frozen_string_literal: true
2
3
# class to implement a 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
10
# class to implement an exception for Missing Table Names in migrations
11
class MissingTableNameException < StandardError
12
  def to_s
13
    'Missing Table Name'
14
  end
15
end
16