Module: Ftpd::Error
- Included in:
- CommandHandler, CommandLoop, CommandSequenceChecker, Session
- Defined in:
- lib/ftpd/error.rb
Instance Method Summary collapse
- #error(message, code) ⇒ Object
- #sequence_error ⇒ Object
- #syntax_error ⇒ Object
- #unimplemented_error ⇒ Object
Instance Method Details
#error(message, code) ⇒ Object
6 7 8 |
# File 'lib/ftpd/error.rb', line 6 def error(, code) raise FtpServerError.new(, code) end |
#sequence_error ⇒ Object
14 15 16 |
# File 'lib/ftpd/error.rb', line 14 def sequence_error error "Bad sequence of commands", 503 end |
#syntax_error ⇒ Object
18 19 20 |
# File 'lib/ftpd/error.rb', line 18 def syntax_error error "Syntax error", 501 end |
#unimplemented_error ⇒ Object
10 11 12 |
# File 'lib/ftpd/error.rb', line 10 def unimplemented_error error "Command not implemented", 502 end |