Exception: RDockerize::Errors::Base
- Inherits:
-
StandardError
- Object
- StandardError
- RDockerize::Errors::Base
- Defined in:
- lib/r_dockerize/errors/base.rb
Direct Known Subclasses
CommandNotFound, DbNotFound, DockerFilenameError, JsNotFound, SubserviceNotFound
Constant Summary collapse
- BASE_KEY =
"r_dockerize.errors.messages"
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
8 9 10 |
# File 'lib/r_dockerize/errors/base.rb', line 8 def attrs @attrs end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
8 9 10 |
# File 'lib/r_dockerize/errors/base.rb', line 8 def key @key end |
Instance Method Details
#create_message ⇒ Object
10 11 12 |
# File 'lib/r_dockerize/errors/base.rb', line 10 def I18n.t("#{BASE_KEY}.#{key}", **{ locale: :en }.merge(attrs)) end |