class InvalidDataError
Raises exceptions for invalid data types.
Public Class Methods
new(response = "Invalid data or file name. Please try again.")
click to toggle source
Instantiates when an invalid data error is raised.
Calls superclass method
# File lib/hocsv/errors.rb, line 4 def initialize(response = "Invalid data or file name. Please try again.") # Invokes StandardError's initialize with a custom response. super(response) end