Exception: EnumerizeSchema::SchemaFileNotFoundError

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

Errors collapse

Errors collapse

Constructor Details

#initialize(schema_file:) ⇒ SchemaFileNotFoundError

Returns a new instance of SchemaFileNotFoundError.

Parameters:

  • schema_file (String, nil)

    the schema file that caused the error



8
9
10
11
12
# File 'lib/enumerize_schema/errors.rb', line 8

def initialize(schema_file:)
  @schema_file = schema_file

  super("Unable to locate 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



5
6
7
# File 'lib/enumerize_schema/errors.rb', line 5

def schema_file
  @schema_file
end