Exception: Ignis::UnsupportedDTypeError
- Defined in:
- lib/nvruby/errors.rb
Overview
Raised when data type is not supported
Instance Attribute Summary collapse
-
#dtype ⇒ Symbol
readonly
The unsupported dtype.
Instance Method Summary collapse
-
#initialize(dtype, operation: nil) ⇒ UnsupportedDTypeError
constructor
A new instance of UnsupportedDTypeError.
Constructor Details
#initialize(dtype, operation: nil) ⇒ UnsupportedDTypeError
Returns a new instance of UnsupportedDTypeError.
209 210 211 212 213 214 |
# File 'lib/nvruby/errors.rb', line 209 def initialize(dtype, operation: nil) @dtype = dtype = "Unsupported data type: #{dtype}" += " for operation #{operation}" if operation super() end |
Instance Attribute Details
#dtype ⇒ Symbol (readonly)
Returns The unsupported dtype.
205 206 207 |
# File 'lib/nvruby/errors.rb', line 205 def dtype @dtype end |