Exception: OpenID::ServerError
- Inherits:
-
OpenIDError
- Object
- StandardError
- OpenIDError
- OpenID::ServerError
- Defined in:
- lib/openid/kvpost.rb
Overview
Exception that is raised when the server returns a 400 response code to a direct request.
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#error_text ⇒ Object
readonly
Returns the value of attribute error_text.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(error_text, error_code, message) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(error_text, error_code, message) ⇒ ServerError
Returns a new instance of ServerError.
10 11 12 13 14 15 |
# File 'lib/openid/kvpost.rb', line 10 def initialize(error_text, error_code, ) super(error_text) @error_text = error_text @error_code = error_code = end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
8 9 10 |
# File 'lib/openid/kvpost.rb', line 8 def error_code @error_code end |
#error_text ⇒ Object (readonly)
Returns the value of attribute error_text.
8 9 10 |
# File 'lib/openid/kvpost.rb', line 8 def error_text @error_text end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
8 9 10 |
# File 'lib/openid/kvpost.rb', line 8 def end |
Class Method Details
.from_message(msg) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/openid/kvpost.rb', line 17 def self.(msg) error_text = msg.get_arg(OPENID_NS, 'error', '<no error message supplied>') error_code = msg.get_arg(OPENID_NS, 'error_code') return self.new(error_text, error_code, msg) end |