Exception: Ikra::Errors::CudaUnknownError
- Defined in:
- lib/translator/cuda_errors.rb
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
Instance Method Summary collapse
-
#initialize(error_code) ⇒ CudaUnknownError
constructor
A new instance of CudaUnknownError.
- #to_s ⇒ Object
Constructor Details
#initialize(error_code) ⇒ CudaUnknownError
Returns a new instance of CudaUnknownError.
14 15 16 |
# File 'lib/translator/cuda_errors.rb', line 14 def initialize(error_code) @error_code = error_code end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
12 13 14 |
# File 'lib/translator/cuda_errors.rb', line 12 def error_code @error_code end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/translator/cuda_errors.rb', line 18 def to_s "CudaUnknownError (#{error_code})" end |