color ¶
Classes:
-
InvalidColorspacePathError–Raised when there is no path between two colorspaces.
-
InvalidMatrixError–Raised when an invalid matrix is passed.
-
InvalidPrimariesError–Raised when an invalid matrix is passed.
-
InvalidTransferError–Raised when an invalid matrix is passed.
-
ReservedMatrixError–Raised when a reserved matrix is requested.
-
ReservedPrimariesError–Raised when reserved primaries are requested.
-
ReservedTransferError–Raised when a reserved transfer is requested.
-
UndefinedColorRangeError–Raised when a undefined color range value is passed.
-
UndefinedMatrixError–Raised when an undefined matrix is passed.
-
UndefinedPrimariesError–Raised when an undefined primaries value is passed.
-
UndefinedTransferError–Raised when an undefined transfer is passed.
-
UnsupportedColorRangeError–Raised when a unsupported color range value is passed.
-
UnsupportedMatrixError–Raised when an unsupported matrix is passed.
-
UnsupportedPrimariesError–Raised when a unsupported primaries value is passed.
-
UnsupportedTransferError–Raised when an unsupported transfer is passed.
InvalidColorspacePathError ¶
InvalidColorspacePathError(
func: FuncExcept, message: SupportsString | None = None, **kwargs: Any
)
Bases: CustomValueError
Raised when there is no path between two colorspaces.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
-
check–Check if there's a valid colorspace path for the given clip.
Attributes:
Source code in vstools/exceptions/color.py
36 37 38 39 40 41 42 43 44 45 46 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
check staticmethod ¶
check(func: FuncExcept, to_check: VideoNode) -> None
Check if there's a valid colorspace path for the given clip.
Parameters:
-
(func¶FuncExcept) –Function returned for custom error handling. This should only be set by VS package developers.
-
(to_check¶VideoNode) –Value to check. Must be a VideoNode.
Raises:
-
InvalidColorspacePathError–If there's no valid colorspace path.
Source code in vstools/exceptions/color.py
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | |
InvalidMatrixError ¶
InvalidMatrixError(
func: FuncExcept,
matrix: int = 2,
message: SupportsString = "You can't set a matrix of {matrix}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in vstools/exceptions/color.py
96 97 98 99 100 101 102 103 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
InvalidPrimariesError ¶
InvalidPrimariesError(
func: FuncExcept,
primaries: int = 2,
message: SupportsString = "You can't set primaries of {primaries}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in vstools/exceptions/color.py
170 171 172 173 174 175 176 177 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
InvalidTransferError ¶
InvalidTransferError(
func: FuncExcept,
transfer: int = 2,
message: SupportsString = "You can't set a transfer of {transfer}!",
**kwargs: Any
)
Bases: CustomValueError
Raised when an invalid matrix is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in vstools/exceptions/color.py
133 134 135 136 137 138 139 140 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
ReservedMatrixError ¶
ReservedMatrixError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomPermissionError
Raised when a reserved matrix is requested.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
ReservedPrimariesError ¶
ReservedPrimariesError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomPermissionError
Raised when reserved primaries are requested.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
ReservedTransferError ¶
ReservedTransferError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomPermissionError
Raised when a reserved transfer is requested.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UndefinedColorRangeError ¶
UndefinedColorRangeError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when a undefined color range value is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UndefinedMatrixError ¶
UndefinedMatrixError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when an undefined matrix is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UndefinedPrimariesError ¶
UndefinedPrimariesError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when an undefined primaries value is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UndefinedTransferError ¶
UndefinedTransferError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when an undefined transfer is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UnsupportedColorRangeError ¶
UnsupportedColorRangeError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when a unsupported color range value is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UnsupportedMatrixError ¶
UnsupportedMatrixError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when an unsupported matrix is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UnsupportedPrimariesError ¶
UnsupportedPrimariesError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when a unsupported primaries value is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |
UnsupportedTransferError ¶
UnsupportedTransferError(
message: SupportsString | None = None,
func: FuncExcept | None = None,
reason: Any = None,
**kwargs: Any
)
Bases: CustomValueError
Raised when an unsupported transfer is passed.
Instantiate a new exception with pretty printing and more.
Parameters:
-
(message¶SupportsString | None, default:None) –Message of the error.
-
(func¶FuncExcept | None, default:None) –Function this exception was raised from.
-
(reason¶Any, default:None) –Reason of the exception. For example, an optional parameter.
Methods:
-
__call__–Copy an existing exception with defaults and instantiate a new one.
-
catch–Create a context manager that catches exceptions of this class type.
Attributes:
Source code in jetpytools/exceptions/base.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
__call__ ¶
__call__(
message: SupportsString | None | MissingT = MISSING,
func: FuncExcept | None | MissingT = MISSING,
reason: SupportsString | FuncExcept | None | MissingT = MISSING,
**kwargs: Any
) -> Self
Copy an existing exception with defaults and instantiate a new one.
Parameters:
-
(message¶SupportsString | None | MissingT, default:MISSING) –Message of the error.
-
(func¶FuncExcept | None | MissingT, default:MISSING) –Function this exception was raised from.
-
(reason¶SupportsString | FuncExcept | None | MissingT, default:MISSING) –Reason of the exception. For example, an optional parameter.
Source code in jetpytools/exceptions/base.py
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | |
catch classmethod ¶
catch() -> CatchError[Self]
Create a context manager that catches exceptions of this class type.
Returns:
-
CatchError[Self]–CatchError[Self]: A context manager that will catch and store exceptions of type
clswhen used in awithblock.
Source code in jetpytools/exceptions/base.py
134 135 136 137 138 139 140 141 142 143 | |