rtopy.exceptions

Custom exceptions for rtopy.

 1"""Custom exceptions for rtopy."""
 2
 3
 4class RtopyError(Exception):
 5    """Base exception for rtopy errors."""
 6
 7    pass
 8
 9
10class RNotFoundError(RtopyError):
11    """Raised when R is not found in PATH."""
12
13    pass
14
15
16class RExecutionError(RtopyError):
17    """Raised when R script execution fails."""
18
19    pass
20
21
22class RTypeError(RtopyError, TypeError):
23    """Raised when type conversion fails."""
24
25    pass
class RtopyError(builtins.Exception):
5class RtopyError(Exception):
6    """Base exception for rtopy errors."""
7
8    pass

Base exception for rtopy errors.

class RNotFoundError(RtopyError):
11class RNotFoundError(RtopyError):
12    """Raised when R is not found in PATH."""
13
14    pass

Raised when R is not found in PATH.

class RExecutionError(RtopyError):
17class RExecutionError(RtopyError):
18    """Raised when R script execution fails."""
19
20    pass

Raised when R script execution fails.

class RTypeError(RtopyError, builtins.TypeError):
23class RTypeError(RtopyError, TypeError):
24    """Raised when type conversion fails."""
25
26    pass

Raised when type conversion fails.