Method: Ftpd::ExceptionTranslator#translate_exceptions

Defined in:
lib/ftpd/exception_translator.rb

#translate_exceptionsObject

Run a block, translating specific exceptions to FileSystemError.



24
25
26
27
28
29
30
# File 'lib/ftpd/exception_translator.rb', line 24

def translate_exceptions
  begin
    return yield
  rescue *@exceptions => e
    raise PermanentFileSystemError, e.message
  end
end