Exception: EnumerizeSchema::SchemaFileNotReadableError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EnumerizeSchema::SchemaFileNotReadableError
- Defined in:
- lib/enumerize_schema/errors.rb
Errors collapse
-
#schema_file ⇒ String?
readonly
The schema file that caused the error.
Errors collapse
-
#initialize(schema_file:) ⇒ SchemaFileNotReadableError
constructor
A new instance of SchemaFileNotReadableError.
Constructor Details
#initialize(schema_file:) ⇒ SchemaFileNotReadableError
Returns a new instance of SchemaFileNotReadableError.
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_file ⇒ String? (readonly)
Returns the schema file that caused the error.
17 18 19 |
# File 'lib/enumerize_schema/errors.rb', line 17 def schema_file @schema_file end |