class Pione::Util::CGIError

CGIError is an error class for occuring errors of CGI execution.

Public Class Methods

cannot_execute_cgi(cgi_path) click to toggle source
# File lib/pione/util/cgi.rb, line 317
def self.cannot_execute_cgi(cgi_path)
  "Cannot execute the CGI: %s" % cgi_path.to_s
end
content_type_not_found() click to toggle source
# File lib/pione/util/cgi.rb, line 301
def self.content_type_not_found
  new("Requisite CGI response header \"Content-Type\" has not found.")
end
failed_to_decode(string) click to toggle source
# File lib/pione/util/cgi.rb, line 293
def self.failed_to_decode(string)
  new("Failed to decode the string as URL: %s" % string)
end
invalid_location(value) click to toggle source
# File lib/pione/util/cgi.rb, line 305
def self.invalid_location(value)
  new("Invalid location has found: \"%s\"" % value)
end
invalid_response_header(line) click to toggle source
# File lib/pione/util/cgi.rb, line 297
def self.invalid_response_header(line)
  new("Inlivad CGI response header has found: \"%s\"" % line)
end
invalid_status(code) click to toggle source
# File lib/pione/util/cgi.rb, line 309
def self.invalid_status(code)
  new("Invalid status code has found: \"%s\"" % code)
end
not_exist(path) click to toggle source
# File lib/pione/util/cgi.rb, line 289
def self.not_exist(path)
  new("CGI program not exist at %s." % path)
end
response_not_found() click to toggle source
# File lib/pione/util/cgi.rb, line 313
def self.response_not_found
  "No CGI response."
end
timeouted() click to toggle source
# File lib/pione/util/cgi.rb, line 321
def self.timeouted
  "CGI exectuion has been timeouted."
end