exceptions
This module all the exceptions raised by this package.
AdjustmentFactorNotInRangeError
Bases: SeedBaseException
Exception raised because adjustment factor not in range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
af |
float
|
Adjustment factor property |
required |
Source code in shift\exceptions.py
328 329 330 331 332 333 334 335 336 337 338 339 340 |
|
AttributeDoesNotExistError
Bases: SeedBaseException
Method is called to early.
Source code in shift\exceptions.py
324 325 |
|
CatalogNotFoundError
Bases: SeedBaseException
Exceptions raised because catalog requested is not found.
Source code in shift\exceptions.py
579 580 |
|
ConductorNotFoundForKdrop
Bases: SeedBaseException
Exceptions raised because no conductor is found that satisfies the kdrop.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kdrop |
float
|
Voltage drop property |
required |
Source code in shift\exceptions.py
555 556 557 558 559 560 561 562 563 564 565 566 |
|
CustomerInvalidPhase
Bases: SeedBaseException
Exceptions raised because number of phase for customer is greater than number of phase used in secondary.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
customer_num_phase |
NumPhase
|
Number of phase property for customer |
required |
secondary_num_phase |
NumPhase
|
Number of phase for secondary lateral |
required |
Source code in shift\exceptions.py
492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 |
|
EarlyMethodCallError
Bases: SeedBaseException
Method is called to early.
Source code in shift\exceptions.py
320 321 |
|
EmptyAssetStyleDict
Bases: SeedBaseException
Exception raised for empty style dict.
Source code in shift\exceptions.py
219 220 221 222 223 224 225 226 227 |
|
EmptyCatalog
Bases: SeedBaseException
Exceptions raised because no catalog found.
Source code in shift\exceptions.py
356 357 |
|
FileNotFoundError
Bases: SeedBaseException
Exception raised because file path does not exist.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path |
str
|
File path property |
required |
Source code in shift\exceptions.py
149 150 151 152 153 154 155 156 157 158 |
|
FolderNotFoundError
Bases: SeedBaseException
Exception raised because folder not found.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
folder_path |
str
|
Path to a invalid folder |
required |
Source code in shift\exceptions.py
257 258 259 260 261 262 263 264 265 266 |
|
HTkVlowerthanLTkVError
Bases: SeedBaseException
Exceptions raised because HT kV used is lower than LT kv used.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ht_kv |
float
|
High tension kv property |
required |
lt_kv |
float
|
Low tension kv property |
required |
Source code in shift\exceptions.py
343 344 345 346 347 348 349 350 351 352 353 |
|
IncompleteGeometryConfigurationDict
Bases: SeedBaseException
Exceptions raised because of incomplete geometry configuration dict.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_phase |
NumPhase
|
Number of phase property |
required |
geometry_dict |
dict
|
Geometry metadata |
required |
Source code in shift\exceptions.py
542 543 544 545 546 547 548 549 550 551 552 |
|
InvalidInputError
Bases: SeedBaseException
Exceptions raised because the input provided is not valid.
Source code in shift\exceptions.py
583 584 |
|
InvalidLengthUnitError
Bases: SeedBaseException
Exceptions raised because length unit is invalid.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
unit |
str
|
Line length unit used |
required |
Source code in shift\exceptions.py
415 416 417 418 419 420 421 422 423 424 425 426 427 |
|
InvalidMapboxStyle
Bases: SeedBaseException
Exception raised because specified style is not accepted.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
style |
str
|
Style property used for mapbox |
required |
Source code in shift\exceptions.py
204 205 206 207 208 209 210 211 212 213 214 215 216 |
|
InvalidNodeType
Bases: SeedBaseException
Exception because invalid node type is used.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
node |
str
|
Node type property |
required |
Source code in shift\exceptions.py
242 243 244 245 246 247 248 249 250 251 252 253 254 |
|
LatitudeNotInRangeError
Bases: SeedBaseException
Exception raised because latitude not in range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
latitude |
float
|
Latitude property |
required |
Source code in shift\exceptions.py
63 64 65 66 67 68 69 70 71 72 73 74 75 |
|
LongitudeNotInRangeError
Bases: SeedBaseException
Exception raised because longitude not in range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
longitude |
float
|
Longitude property |
required |
Source code in shift\exceptions.py
78 79 80 81 82 83 84 85 86 87 88 89 90 |
|
MaxLoopReachedForKmeans
Bases: SeedBaseException
Exception raised because max number of iterations reached for computing optimal cluster number.
Source code in shift\exceptions.py
296 297 298 |
|
MissingConfigurationAttribute
Bases: SeedBaseException
Exceptions raised because attribute is missing in configuration yaml file.
Source code in shift\exceptions.py
569 570 571 |
|
MissingKeyDataForNetworkNode
Bases: SeedBaseException
Exception because type property is missing for a network node.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
type |
str
|
type property for missing key |
required |
Source code in shift\exceptions.py
230 231 232 233 234 235 236 237 238 239 |
|
MultipleCatalogFoundError
Bases: SeedBaseException
Exceptions raised because multiple records found in the catalog.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
records |
List[dict]
|
List of records |
required |
Source code in shift\exceptions.py
360 361 362 363 364 365 366 367 368 369 |
|
NegativeAmpacityError
Bases: SeedBaseException
Exceptions raised because Ampacity is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ampacity |
float
|
Ampacity property |
required |
Source code in shift\exceptions.py
466 467 468 469 470 471 472 473 474 475 |
|
NegativeAreaError
Bases: SeedBaseException
Exception raused because area of the geometry is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
area |
float
|
Area property |
required |
Source code in shift\exceptions.py
109 110 111 112 113 114 115 116 117 118 |
|
NegativeDiameterError
Bases: SeedBaseException
Exceptions raised because diameter is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
diameter |
float
|
Conductor diameter property |
required |
Source code in shift\exceptions.py
430 431 432 433 434 435 436 437 438 439 |
|
NegativeGMRError
Bases: SeedBaseException
Exceptions raised because GMR is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
gmr |
float
|
Geometric mean radius property |
required |
Source code in shift\exceptions.py
442 443 444 445 446 447 448 449 450 451 |
|
NegativeKVError
Bases: SeedBaseException
Exception raised because kV is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kv |
float
|
Voltage in KV property |
required |
Source code in shift\exceptions.py
93 94 95 96 97 98 99 100 101 102 |
|
NegativeLineLengthError
Bases: SeedBaseException
Exceptions raised because line length is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
length |
float
|
Line segment's length property |
required |
Source code in shift\exceptions.py
403 404 405 406 407 408 409 410 411 412 |
|
NegativeResistanceError
Bases: SeedBaseException
Exceptions raised because AC resistance is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
r |
float
|
AC resistance property |
required |
Source code in shift\exceptions.py
454 455 456 457 458 459 460 461 462 463 |
|
NegativeStrandsError
Bases: SeedBaseException
Exceptions raised because Number of strands is negative.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_strands |
float
|
Number of strands property |
required |
Source code in shift\exceptions.py
478 479 480 481 482 483 484 485 486 487 488 489 |
|
NegativekVAError
Bases: SeedBaseException
Exception raised because negative kva is used.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
kva |
float
|
kva property |
required |
Source code in shift\exceptions.py
284 285 286 287 288 289 290 291 292 293 |
|
NotCompatibleFileError
Bases: SeedBaseException
Exception raised because unexpected file type recieved.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
file_path |
str
|
File path property |
required |
expected_type |
str
|
Expected file type property |
required |
Source code in shift\exceptions.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
|
NotImplementedError
Bases: SeedBaseException
Feature not implmeneted error.
Source code in shift\exceptions.py
587 588 |
|
NumberOfClusterNotInRangeError
Bases: SeedBaseException
Exception raised because number of clusters used is not within range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
num_of_clus |
int
|
Number of clusters property |
required |
Source code in shift\exceptions.py
305 306 307 308 309 310 311 312 313 314 315 316 317 |
|
OperationYearNotInRange
Bases: SeedBaseException
Exceptions raised because year in operation is not within range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
year |
float
|
Year property |
required |
Source code in shift\exceptions.py
372 373 374 375 376 377 378 379 380 381 382 383 384 |
|
PercentageNotInRangeError
Bases: SeedBaseException
Exception raised because percentage set is not within range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pct |
float
|
Percentage property |
required |
Source code in shift\exceptions.py
269 270 271 272 273 274 275 276 277 278 279 280 281 |
|
PercentageSumNotHundred
Bases: SeedBaseException
Exception raised because sum of pct values not equal to 100.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
total_pct |
float
|
Percentage property |
required |
Source code in shift\exceptions.py
136 137 138 139 140 141 142 143 144 145 |
|
PhaseMismatchError
Bases: SeedBaseException
Exceptions raised because phase misatch is encountered.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
phase1 |
Phase
|
Phase property for one end |
required |
phase2 |
Phase
|
Phase property for other end |
required |
Source code in shift\exceptions.py
526 527 528 529 530 531 532 533 534 535 536 537 538 539 |
|
PoleToPoleDistanceNotInRange
Bases: SeedBaseException
Exceptions raised because pole to pole distance is not within range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
distance |
float
|
Pole to pole distance property |
required |
Source code in shift\exceptions.py
387 388 389 390 391 392 393 394 395 396 397 398 399 400 |
|
PowerFactorNotInRangeError
Bases: SeedBaseException
Exception raised because power factor not in range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pf |
float
|
Power factor property |
required |
Source code in shift\exceptions.py
121 122 123 124 125 126 127 128 129 130 131 132 133 |
|
SeedBaseException
Bases: Exception
All exception should derive from this.
Source code in shift\exceptions.py
59 60 |
|
UnsupportedFeatureError
Bases: SeedBaseException
Exceptions raised because feature being requested is not yet supported or invalid type is passed.
Source code in shift\exceptions.py
574 575 576 |
|
UnsupportedFrequencyError
Bases: SeedBaseException
Exceptions raised because unsupported frequency is in use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
freq |
float
|
Frequency in hz |
required |
Source code in shift\exceptions.py
511 512 513 514 515 516 517 518 519 520 521 522 523 |
|
ValidationError
Bases: SeedBaseException
Exception raised bbecause content can not be validated.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
errors |
list
|
List of error messages. |
required |
Source code in shift\exceptions.py
177 178 179 180 181 182 183 184 185 186 |
|
WrongInputUsed
Bases: SeedBaseException
Exeption raised becaue wrong input is used.
Source code in shift\exceptions.py
301 302 |
|
ZeroKVError
Bases: SeedBaseException
Exception raused because the kV is zero.
Source code in shift\exceptions.py
105 106 |
|
ZoomLevelNotInRangeError
Bases: SeedBaseException
Exception raised because zoom level defined is not in range.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
zoom |
int
|
Zoom level property |
required |
Source code in shift\exceptions.py
189 190 191 192 193 194 195 196 197 198 199 200 201 |
|