Class: OpenID::Server::ProtocolError

Class | OpenID::Server::ProtocolError
In: | lib/openid/server.rb
Parent: | Exception

A message did not conform to the OpenID protocol.

### Methods

encode_to_kvform encode_to_url get_return_to has_return_to new to_form_markup to_html to_message which_encoding

### Attributes

contact | [RW] |
openid_message | [RW] | The query that is failing to be a valid OpenID request.
reference | [RW] |

### Public Class methods

new(message, text=nil, reference=nil, contact=nil)

text: | A message about the encountered error.

### Public Instance methods

encode_to_kvform()
encode_to_url()

implements IEncodable

get_return_to()

Get the return_to argument from the request, if any.

has_return_to()

Did this request have a return_to parameter?

to_form_markup()
to_html()
to_message()

Generate a Message object for sending to the relying party, after encoding.

which_encoding()

How should I be encoded?

Returns one of ENCODE_URL, ENCODE_KVFORM, or None. If None, I cannot be encoded as a protocol message and should be displayed to the user.

[Validate]