class Mechanize::UnauthorizedError
Attributes
challenges[R]
Public Class Methods
new(page, challenges, message)
click to toggle source
Calls superclass method
Mechanize::ResponseCodeError.new
# File lib/mechanize/unauthorized_error.rb, line 5 def initialize page, challenges, message super page, message @challenges = challenges end
Public Instance Methods
to_s()
click to toggle source
Calls superclass method
Mechanize::ResponseCodeError#to_s
# File lib/mechanize/unauthorized_error.rb, line 10 def to_s out = super if @challenges then realms = @challenges.map { |challenge| challenge.realm_name }.join ', ' out << " -- available realms: #{realms}" end out end