File: errors.py

package info (click to toggle)
python-fs 2.4.16-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,384 kB
  • sloc: python: 13,196; makefile: 226; sh: 3
file content (23 lines) | stat: -rw-r--r-- 494 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# coding: utf-8
"""Errors raised when attempting to open a filesystem.
"""


class ParseError(ValueError):
    """Attempt to parse an invalid FS URL."""


class OpenerError(Exception):
    """Base exception for opener related errors."""


class UnsupportedProtocol(OpenerError):
    """No opener found for the given protocol."""


class EntryPointError(OpenerError):
    """An entry point could not be loaded."""


class NotWriteable(OpenerError):
    """A writable FS could not be created."""