Exception: Kuby::Docker::MissingTagError
- Inherits:
-
StandardError
- Object
- StandardError
- Kuby::Docker::MissingTagError
- Extended by:
- T::Sig
- Defined in:
- lib/kuby/docker/errors.rb
Instance Attribute Summary collapse
-
#tag ⇒ Object
readonly
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize(tag) ⇒ MissingTagError
constructor
A new instance of MissingTagError.
- #message ⇒ Object
Constructor Details
#initialize(tag) ⇒ MissingTagError
Returns a new instance of MissingTagError.
17 18 19 20 |
# File 'lib/kuby/docker/errors.rb', line 17 def initialize(tag) @tag = tag @message = T.let(@message, T.nilable(String)) end |
Instance Attribute Details
#tag ⇒ Object (readonly)
Returns the value of attribute tag.
14 15 16 |
# File 'lib/kuby/docker/errors.rb', line 14 def tag @tag end |
Instance Method Details
#message ⇒ Object
23 24 25 |
# File 'lib/kuby/docker/errors.rb', line 23 def @message ||= "Could not find tag '#{tag}'." end |