Exception: Authlete::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- Authlete::Exception
- Includes:
- ParamInitializer
- Defined in:
- lib/authlete/exception.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#result ⇒ Object
Returns the value of attribute result.
-
#statusCode ⇒ Object
(also: #status_code)
Returns the value of attribute statusCode.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
22 23 24 |
# File 'lib/authlete/exception.rb', line 22 def @message end |
#result ⇒ Object
Returns the value of attribute result.
28 29 30 |
# File 'lib/authlete/exception.rb', line 28 def result @result end |
#statusCode ⇒ Object Also known as: status_code
Returns the value of attribute statusCode.
24 25 26 |
# File 'lib/authlete/exception.rb', line 24 def statusCode @statusCode end |
Class Method Details
.default_message ⇒ Object
65 66 67 |
# File 'lib/authlete/exception.rb', line 65 def self. self.name end |
Instance Method Details
#available_message ⇒ Object
56 57 58 |
# File 'lib/authlete/exception.rb', line 56 def || @message || self.class. end |
#result_code ⇒ Object
48 49 50 |
# File 'lib/authlete/exception.rb', line 48 def result_code @result && @result.resultCode end |
#result_message ⇒ Object
52 53 54 |
# File 'lib/authlete/exception.rb', line 52 def @result && @result.resultMessage end |
#to_s ⇒ Object
60 61 62 63 |
# File 'lib/authlete/exception.rb', line 60 def to_s "#{self.class.} => { message:'#{@message}', status_code:'#{@statusCode}', " + "result_code:'#{result_code}', result_message:'#{}' }" end |