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