diff options
Diffstat (limited to 'lib/roo/errors.rb')
| -rw-r--r-- | lib/roo/errors.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/roo/errors.rb b/lib/roo/errors.rb new file mode 100644 index 0000000..9a736b8 --- /dev/null +++ b/lib/roo/errors.rb @@ -0,0 +1,11 @@ +module Roo + # A base error class for Roo. Most errors thrown by Roo should inherit from + # this class. + class Error < StandardError; end + + # Raised when Roo cannot find a header row that matches the given column + # name(s). + class HeaderRowNotFoundError < Error; end + + class FileNotFound < Error; end +end |
