file_system

file_system.file_open_error

exception lsserver.file_system.errors.FileOpenError(message, file, caused_by=None, **kwargs)

Bases: lsserver.file_system.errors.StdFileError

An error indicating a file on the filesystem could not be opened.

Parameters:
  • message (string) – a textual message explaining the error
  • file (string) – path to the file
  • caused_by (Exception) – an exception which preceded this exception’s creation
HTTP code: 500 Internal Server Error
Example: Cannot open files. None
type = 'file_system.file_open_error'
localizable_message = <LocalizableMessage key='file_system.file_open_error' ...>

file_system.file_read_error

exception lsserver.file_system.errors.FileReadError(message, file, caused_by=None, **kwargs)

Bases: lsserver.file_system.errors.StdFileError

An error indicating that reading a filesystem file raised an error.

Parameters:
  • message (string) – a textual message explaining the error
  • file (string) – path to the file
  • caused_by (Exception) – an exception which preceded this exception’s creation
HTTP code: 500 Internal Server Error
Example: Cannot read file. None
type = 'file_system.file_read_error'
localizable_message = <LocalizableMessage key='file_system.file_read_error' ...>

file_system.file_write_error

exception lsserver.file_system.errors.FileWriteError(message, file, caused_by=None, **kwargs)

Bases: lsserver.file_system.errors.StdFileError

An error indicating an error occurred while trying to write a file to the filesystem.

Parameters:
  • message (string) – a textual message explaining the error
  • file (string) – path to the file
  • caused_by (Exception) – an exception which preceded this exception’s creation
HTTP code: 500 Internal Server Error
Example: Cannot write file. None
type = 'file_system.file_write_error'
localizable_message = <LocalizableMessage key='file_system.file_write_error' ...>