Exception: Pione::Util::CGIError
- Inherits:
-
StandardError
- Object
- StandardError
- Pione::Util::CGIError
- Defined in:
- lib/pione/util/cgi.rb
Overview
CGIError is an error class for occuring errors of CGI execution.
Class Method Summary collapse
- .cannot_execute_cgi(cgi_path) ⇒ Object
- .content_type_not_found ⇒ Object
- .failed_to_decode(string) ⇒ Object
- .invalid_location(value) ⇒ Object
- .invalid_response_header(line) ⇒ Object
- .invalid_status(code) ⇒ Object
- .not_exist(path) ⇒ Object
- .response_not_found ⇒ Object
- .timeouted ⇒ Object
Class Method Details
.cannot_execute_cgi(cgi_path) ⇒ Object
317 318 319 |
# 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 ⇒ Object
301 302 303 |
# 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) ⇒ Object
293 294 295 |
# 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) ⇒ Object
305 306 307 |
# 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) ⇒ Object
297 298 299 |
# 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) ⇒ Object
309 310 311 |
# 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) ⇒ Object
289 290 291 |
# 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 ⇒ Object
313 314 315 |
# File 'lib/pione/util/cgi.rb', line 313 def self.response_not_found "No CGI response." end |
.timeouted ⇒ Object
321 322 323 |
# File 'lib/pione/util/cgi.rb', line 321 def self.timeouted "CGI exectuion has been timeouted." end |