Class: CPInvalidRequest
- Inherits:
-
Object
- Object
- CPInvalidRequest
- Defined in:
- lib/crowi/client/apireq/api_request_base.rb
Overview
Note:
rescue する必要はないので Exception クラスは継承しない
APIリクエストのバリデーションエラー
Instance Attribute Summary collapse
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(msg) ⇒ CPInvalidRequest
constructor
コンストラクタ.
-
#to_s ⇒ String
Convert string.
Constructor Details
#initialize(msg) ⇒ CPInvalidRequest
コンストラクタ
8 9 10 |
# File 'lib/crowi/client/apireq/api_request_base.rb', line 8 def initialize(msg) @msg = msg end |
Instance Attribute Details
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
4 5 6 |
# File 'lib/crowi/client/apireq/api_request_base.rb', line 4 def msg @msg end |
Instance Method Details
#to_s ⇒ String
Convert string
14 15 16 |
# File 'lib/crowi/client/apireq/api_request_base.rb', line 14 def to_s return @msg end |