Exception: ASpaceImport::Utils::ASpaceImportException
- Inherits:
-
StandardError
- Object
- StandardError
- ASpaceImport::Utils::ASpaceImportException
- Defined in:
- backend/app/converters/lib/utils.rb
Instance Attribute Summary (collapse)
-
- (Object) property
Returns the value of attribute property.
-
- (Object) property_def
Returns the value of attribute property_def.
-
- (Object) val_type
Returns the value of attribute val_type.
Instance Method Summary (collapse)
-
- (ASpaceImportException) initialize(opts)
constructor
A new instance of ASpaceImportException.
-
- (Object) to_s
Constructor Details
- (ASpaceImportException) initialize(opts)
Returns a new instance of ASpaceImportException
176 177 178 179 180 |
# File 'backend/app/converters/lib/utils.rb', line 176 def initialize(opts) @property = opts[:property] @val_type = opts[:val_type] @property_def = opts[:property_def] end |
Instance Attribute Details
- (Object) property
Returns the value of attribute property
172 173 174 |
# File 'backend/app/converters/lib/utils.rb', line 172 def property @property end |
- (Object) property_def
Returns the value of attribute property_def
174 175 176 |
# File 'backend/app/converters/lib/utils.rb', line 174 def property_def @property_def end |
- (Object) val_type
Returns the value of attribute val_type
173 174 175 |
# File 'backend/app/converters/lib/utils.rb', line 173 def val_type @val_type end |
Instance Method Details
- (Object) to_s
182 183 184 185 186 187 188 189 190 |
# File 'backend/app/converters/lib/utils.rb', line 182 def to_s if @property_def "#<:ASpaceImportException: Can't classify the property schema: #{property_def.inspect}>" elsif @val_type "#<:ASpaceImportException: Can't identify a Model for property '#{property}' of type '#{val_type}'>" else "#<:ASpaceImportException: Can't identify a schema fragment for property '#{property}'>" end end |