(self)
| 174 | self.ndim = ndim |
| 175 | |
| 176 | def __str__(self): |
| 177 | axis = self.axis |
| 178 | ndim = self.ndim |
| 179 | |
| 180 | if axis is ndim is None: |
| 181 | return self._msg |
| 182 | else: |
| 183 | msg = f"axis {axis} is out of bounds for array of dimension {ndim}" |
| 184 | if self._msg is not None: |
| 185 | msg = f"{self._msg}: {msg}" |
| 186 | return msg |
| 187 | |
| 188 | |
| 189 | class DTypePromotionError(TypeError): |
nothing calls this directly
no outgoing calls
no test coverage detected