Exception: EnumerizeSchema::SchemaFileNotReadableError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/enumerize_schema/errors.rb

Errors collapse

Errors collapse

Constructor Details

#initialize(schema_file:) ⇒ SchemaFileNotReadableError

Returns a new instance of SchemaFileNotReadableError.

Parameters:

  • schema_file (String, nil)

    the schema file that caused the error



20
21
22
23
24
# File 'lib/enumerize_schema/errors.rb', line 20

def initialize(schema_file:)
  @schema_file = schema_file

  super("Unable to read the schema file #{schema_file.inspect}")
end

Instance Attribute Details

#schema_fileString? (readonly)

Returns the schema file that caused the error.

Returns:

  • (String, nil)

    the schema file that caused the error



17
18
19
# File 'lib/enumerize_schema/errors.rb', line 17

def schema_file
  @schema_file
end