Class: Zakuro::Exception::Cause
- Inherits:
-
Object
- Object
- Zakuro::Exception::Cause
- Defined in:
- lib/zakuro/exception/cause.rb
Overview
Cause 原因
Instance Attribute Summary collapse
-
#code ⇒ String
readonly
エラーコード.
-
#message ⇒ String
readonly
メッセージ.
Instance Method Summary collapse
-
#initialize(code:, message:) ⇒ Cause
constructor
初期化.
Constructor Details
#initialize(code:, message:) ⇒ Cause
初期化
22 23 24 25 |
# File 'lib/zakuro/exception/cause.rb', line 22 def initialize(code:, message:) @code = code @message = end |
Instance Attribute Details
#code ⇒ String (readonly)
Returns エラーコード.
12 13 14 |
# File 'lib/zakuro/exception/cause.rb', line 12 def code @code end |
#message ⇒ String (readonly)
Returns メッセージ.
14 15 16 |
# File 'lib/zakuro/exception/cause.rb', line 14 def @message end |