|
4 | 4 |
|
5 | 5 |
|
6 | 6 | class PySparkException(Exception): |
7 | | - """Base Exception for handling errors generated from PySpark. |
8 | | - """ |
| 7 | + """Base Exception for handling errors generated from PySpark.""" |
9 | 8 |
|
10 | 9 | def __init__( |
11 | 10 | self, |
@@ -78,115 +77,92 @@ def __str__(self) -> str: |
78 | 77 |
|
79 | 78 |
|
80 | 79 | class AnalysisException(PySparkException): |
81 | | - """Failed to analyze a SQL query plan. |
82 | | - """ |
| 80 | + """Failed to analyze a SQL query plan.""" |
83 | 81 |
|
84 | 82 |
|
85 | 83 | class SessionNotSameException(PySparkException): |
86 | | - """Performed the same operation on different SparkSession. |
87 | | - """ |
| 84 | + """Performed the same operation on different SparkSession.""" |
88 | 85 |
|
89 | 86 |
|
90 | 87 | class TempTableAlreadyExistsException(AnalysisException): |
91 | | - """Failed to create temp view since it is already exists. |
92 | | - """ |
| 88 | + """Failed to create temp view since it is already exists.""" |
93 | 89 |
|
94 | 90 |
|
95 | 91 | class ParseException(AnalysisException): |
96 | | - """Failed to parse a SQL command. |
97 | | - """ |
| 92 | + """Failed to parse a SQL command.""" |
98 | 93 |
|
99 | 94 |
|
100 | 95 | class IllegalArgumentException(PySparkException): |
101 | | - """Passed an illegal or inappropriate argument. |
102 | | - """ |
| 96 | + """Passed an illegal or inappropriate argument.""" |
103 | 97 |
|
104 | 98 |
|
105 | 99 | class ArithmeticException(PySparkException): |
106 | | - """Arithmetic exception thrown from Spark with an error class. |
107 | | - """ |
| 100 | + """Arithmetic exception thrown from Spark with an error class.""" |
108 | 101 |
|
109 | 102 |
|
110 | 103 | class UnsupportedOperationException(PySparkException): |
111 | | - """Unsupported operation exception thrown from Spark with an error class. |
112 | | - """ |
| 104 | + """Unsupported operation exception thrown from Spark with an error class.""" |
113 | 105 |
|
114 | 106 |
|
115 | 107 | class ArrayIndexOutOfBoundsException(PySparkException): |
116 | | - """Array index out of bounds exception thrown from Spark with an error class. |
117 | | - """ |
| 108 | + """Array index out of bounds exception thrown from Spark with an error class.""" |
118 | 109 |
|
119 | 110 |
|
120 | 111 | class DateTimeException(PySparkException): |
121 | | - """Datetime exception thrown from Spark with an error class. |
122 | | - """ |
| 112 | + """Datetime exception thrown from Spark with an error class.""" |
123 | 113 |
|
124 | 114 |
|
125 | 115 | class NumberFormatException(IllegalArgumentException): |
126 | | - """Number format exception thrown from Spark with an error class. |
127 | | - """ |
| 116 | + """Number format exception thrown from Spark with an error class.""" |
128 | 117 |
|
129 | 118 |
|
130 | 119 | class StreamingQueryException(PySparkException): |
131 | | - """Exception that stopped a :class:`StreamingQuery`. |
132 | | - """ |
| 120 | + """Exception that stopped a :class:`StreamingQuery`.""" |
133 | 121 |
|
134 | 122 |
|
135 | 123 | class QueryExecutionException(PySparkException): |
136 | | - """Failed to execute a query. |
137 | | - """ |
| 124 | + """Failed to execute a query.""" |
138 | 125 |
|
139 | 126 |
|
140 | 127 | class PythonException(PySparkException): |
141 | | - """Exceptions thrown from Python workers. |
142 | | - """ |
| 128 | + """Exceptions thrown from Python workers.""" |
143 | 129 |
|
144 | 130 |
|
145 | 131 | class SparkRuntimeException(PySparkException): |
146 | | - """Runtime exception thrown from Spark with an error class. |
147 | | - """ |
| 132 | + """Runtime exception thrown from Spark with an error class.""" |
148 | 133 |
|
149 | 134 |
|
150 | 135 | class SparkUpgradeException(PySparkException): |
151 | | - """Exception thrown because of Spark upgrade. |
152 | | - """ |
| 136 | + """Exception thrown because of Spark upgrade.""" |
153 | 137 |
|
154 | 138 |
|
155 | 139 | class UnknownException(PySparkException): |
156 | | - """None of the above exceptions. |
157 | | - """ |
| 140 | + """None of the above exceptions.""" |
158 | 141 |
|
159 | 142 |
|
160 | 143 | class PySparkValueError(PySparkException, ValueError): |
161 | | - """Wrapper class for ValueError to support error classes. |
162 | | - """ |
| 144 | + """Wrapper class for ValueError to support error classes.""" |
163 | 145 |
|
164 | 146 |
|
165 | 147 | class PySparkIndexError(PySparkException, IndexError): |
166 | | - """Wrapper class for IndexError to support error classes. |
167 | | - """ |
| 148 | + """Wrapper class for IndexError to support error classes.""" |
168 | 149 |
|
169 | 150 |
|
170 | 151 | class PySparkTypeError(PySparkException, TypeError): |
171 | | - """Wrapper class for TypeError to support error classes. |
172 | | - """ |
| 152 | + """Wrapper class for TypeError to support error classes.""" |
173 | 153 |
|
174 | 154 |
|
175 | 155 | class PySparkAttributeError(PySparkException, AttributeError): |
176 | | - """Wrapper class for AttributeError to support error classes. |
177 | | - """ |
| 156 | + """Wrapper class for AttributeError to support error classes.""" |
178 | 157 |
|
179 | 158 |
|
180 | 159 | class PySparkRuntimeError(PySparkException, RuntimeError): |
181 | | - """Wrapper class for RuntimeError to support error classes. |
182 | | - """ |
| 160 | + """Wrapper class for RuntimeError to support error classes.""" |
183 | 161 |
|
184 | 162 |
|
185 | 163 | class PySparkAssertionError(PySparkException, AssertionError): |
186 | | - """Wrapper class for AssertionError to support error classes. |
187 | | - """ |
| 164 | + """Wrapper class for AssertionError to support error classes.""" |
188 | 165 |
|
189 | 166 |
|
190 | 167 | class PySparkNotImplementedError(PySparkException, NotImplementedError): |
191 | | - """Wrapper class for NotImplementedError to support error classes. |
192 | | - """ |
| 168 | + """Wrapper class for NotImplementedError to support error classes.""" |
0 commit comments