1 # encoding: utf-8 2 # module exceptions 3 # from (built-in) by generator 1.100 4 """ 5 Python's standard exception class hierarchy. 6 7 Exceptions found here are defined both in the exceptions module and the 8 built-in namespace. It is recommended that user-defined exceptions 9 inherit from Exception. See the documentation for the exception 10 inheritance hierarchy. 11 """ 12 # no imports 13 14 # no functions 15 # classes 16 17 class BaseException(object): 18 """ Common base class for all exceptions """ 19 def __delattr__(self, name): # real signature unknown; restored from __doc__ 20 """ x.__delattr__('name') <==> del x.name """ 21 pass 22 23 def __getattribute__(self, name): # real signature unknown; restored from __doc__ 24 """ x.__getattribute__('name') <==> x.name """ 25 pass 26 27 def __getitem__(self, y): # real signature unknown; restored from __doc__ 28 """ x.__getitem__(y) <==> x[y] """ 29 pass 30 31 def __getslice__(self, i, j): # real signature unknown; restored from __doc__ 32 """ 33 x.__getslice__(i, j) <==> x[i:j] 34 35 Use of negative indices is not supported. 36 """ 37 pass 38 39 def __init__(self, *args, **kwargs): # real signature unknown 40 pass 41 42 @staticmethod # known case of __new__ 43 def __new__(S, *more): # real signature unknown; restored from __doc__ 44 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 45 pass 46 47 def __reduce__(self, *args, **kwargs): # real signature unknown 48 pass 49 50 def __repr__(self): # real signature unknown; restored from __doc__ 51 """ x.__repr__() <==> repr(x) """ 52 pass 53 54 def __setattr__(self, name, value): # real signature unknown; restored from __doc__ 55 """ x.__setattr__('name', value) <==> x.name = value """ 56 pass 57 58 def __setstate__(self, *args, **kwargs): # real signature unknown 59 pass 60 61 def __str__(self): # real signature unknown; restored from __doc__ 62 """ x.__str__() <==> str(x) """ 63 pass 64 65 def __unicode__(self, *args, **kwargs): # real signature unknown 66 pass 67 68 args = property(lambda self: object()) # default 69 message = property(lambda self: object()) # default 70 71 __dict__ = None # (!) real value is '' 72 73 74 class Exception(BaseException): 75 """ Common base class for all non-exit exceptions. """ 76 def __init__(self, *args, **kwargs): # real signature unknown 77 pass 78 79 @staticmethod # known case of __new__ 80 def __new__(S, *more): # real signature unknown; restored from __doc__ 81 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 82 pass 83 84 85 class StandardError(Exception): 86 """ 87 Base class for all standard Python exceptions that do not represent 88 interpreter exiting. 89 """ 90 def __init__(self, *args, **kwargs): # real signature unknown 91 pass 92 93 @staticmethod # known case of __new__ 94 def __new__(S, *more): # real signature unknown; restored from __doc__ 95 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 96 pass 97 98 99 class ArithmeticError(StandardError): 100 """ Base class for arithmetic errors. """ 101 def __init__(self, *args, **kwargs): # real signature unknown 102 pass 103 104 @staticmethod # known case of __new__ 105 def __new__(S, *more): # real signature unknown; restored from __doc__ 106 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 107 pass 108 109 110 class AssertionError(StandardError): 111 """ Assertion failed. """ 112 def __init__(self, *args, **kwargs): # real signature unknown 113 pass 114 115 @staticmethod # known case of __new__ 116 def __new__(S, *more): # real signature unknown; restored from __doc__ 117 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 118 pass 119 120 121 class AttributeError(StandardError): 122 """ Attribute not found. """ 123 def __init__(self, *args, **kwargs): # real signature unknown 124 pass 125 126 @staticmethod # known case of __new__ 127 def __new__(S, *more): # real signature unknown; restored from __doc__ 128 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 129 pass 130 131 132 class BufferError(StandardError): 133 """ Buffer error. """ 134 def __init__(self, *args, **kwargs): # real signature unknown 135 pass 136 137 @staticmethod # known case of __new__ 138 def __new__(S, *more): # real signature unknown; restored from __doc__ 139 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 140 pass 141 142 143 class Warning(Exception): 144 """ Base class for warning categories. """ 145 def __init__(self, *args, **kwargs): # real signature unknown 146 pass 147 148 @staticmethod # known case of __new__ 149 def __new__(S, *more): # real signature unknown; restored from __doc__ 150 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 151 pass 152 153 154 class BytesWarning(Warning): 155 """ 156 Base class for warnings about bytes and buffer related problems, mostly 157 related to conversion from str or comparing to str. 158 """ 159 def __init__(self, *args, **kwargs): # real signature unknown 160 pass 161 162 @staticmethod # known case of __new__ 163 def __new__(S, *more): # real signature unknown; restored from __doc__ 164 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 165 pass 166 167 168 class DeprecationWarning(Warning): 169 """ Base class for warnings about deprecated features. """ 170 def __init__(self, *args, **kwargs): # real signature unknown 171 pass 172 173 @staticmethod # known case of __new__ 174 def __new__(S, *more): # real signature unknown; restored from __doc__ 175 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 176 pass 177 178 179 class EnvironmentError(StandardError): 180 """ Base class for I/O related errors. """ 181 def __init__(self, *args, **kwargs): # real signature unknown 182 pass 183 184 @staticmethod # known case of __new__ 185 def __new__(S, *more): # real signature unknown; restored from __doc__ 186 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 187 pass 188 189 def __reduce__(self, *args, **kwargs): # real signature unknown 190 pass 191 192 def __str__(self): # real signature unknown; restored from __doc__ 193 """ x.__str__() <==> str(x) """ 194 pass 195 196 errno = property(lambda self: object()) # default 197 filename = property(lambda self: object()) # default 198 strerror = property(lambda self: object()) # default 199 200 201 class EOFError(StandardError): 202 """ Read beyond end of file. """ 203 def __init__(self, *args, **kwargs): # real signature unknown 204 pass 205 206 @staticmethod # known case of __new__ 207 def __new__(S, *more): # real signature unknown; restored from __doc__ 208 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 209 pass 210 211 212 class FloatingPointError(ArithmeticError): 213 """ Floating point operation failed. """ 214 def __init__(self, *args, **kwargs): # real signature unknown 215 pass 216 217 @staticmethod # known case of __new__ 218 def __new__(S, *more): # real signature unknown; restored from __doc__ 219 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 220 pass 221 222 223 class FutureWarning(Warning): 224 """ 225 Base class for warnings about constructs that will change semantically 226 in the future. 227 """ 228 def __init__(self, *args, **kwargs): # real signature unknown 229 pass 230 231 @staticmethod # known case of __new__ 232 def __new__(S, *more): # real signature unknown; restored from __doc__ 233 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 234 pass 235 236 237 class GeneratorExit(BaseException): 238 """ Request that a generator exit. """ 239 def __init__(self, *args, **kwargs): # real signature unknown 240 pass 241 242 @staticmethod # known case of __new__ 243 def __new__(S, *more): # real signature unknown; restored from __doc__ 244 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 245 pass 246 247 248 class ImportError(StandardError): 249 """ Import can't find module, or can't find name in module. """ 250 def __init__(self, *args, **kwargs): # real signature unknown 251 pass 252 253 @staticmethod # known case of __new__ 254 def __new__(S, *more): # real signature unknown; restored from __doc__ 255 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 256 pass 257 258 259 class ImportWarning(Warning): 260 """ Base class for warnings about probable mistakes in module imports """ 261 def __init__(self, *args, **kwargs): # real signature unknown 262 pass 263 264 @staticmethod # known case of __new__ 265 def __new__(S, *more): # real signature unknown; restored from __doc__ 266 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 267 pass 268 269 270 class SyntaxError(StandardError): 271 """ Invalid syntax. """ 272 def __init__(self, *args, **kwargs): # real signature unknown 273 pass 274 275 @staticmethod # known case of __new__ 276 def __new__(S, *more): # real signature unknown; restored from __doc__ 277 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 278 pass 279 280 def __str__(self): # real signature unknown; restored from __doc__ 281 """ x.__str__() <==> str(x) """ 282 pass 283 284 filename = property(lambda self: object()) # default 285 lineno = property(lambda self: object()) # default 286 msg = property(lambda self: object()) # default 287 offset = property(lambda self: object()) # default 288 print_file_and_line = property(lambda self: object()) # default 289 text = property(lambda self: object()) # default 290 291 292 class IndentationError(SyntaxError): 293 """ Improper indentation. """ 294 def __init__(self, *args, **kwargs): # real signature unknown 295 pass 296 297 @staticmethod # known case of __new__ 298 def __new__(S, *more): # real signature unknown; restored from __doc__ 299 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 300 pass 301 302 303 class LookupError(StandardError): 304 """ Base class for lookup errors. """ 305 def __init__(self, *args, **kwargs): # real signature unknown 306 pass 307 308 @staticmethod # known case of __new__ 309 def __new__(S, *more): # real signature unknown; restored from __doc__ 310 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 311 pass 312 313 314 class IndexError(LookupError): 315 """ Sequence index out of range. """ 316 def __init__(self, *args, **kwargs): # real signature unknown 317 pass 318 319 @staticmethod # known case of __new__ 320 def __new__(S, *more): # real signature unknown; restored from __doc__ 321 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 322 pass 323 324 325 class IOError(EnvironmentError): 326 """ I/O operation failed. """ 327 def __init__(self, *args, **kwargs): # real signature unknown 328 pass 329 330 @staticmethod # known case of __new__ 331 def __new__(S, *more): # real signature unknown; restored from __doc__ 332 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 333 pass 334 335 336 class KeyboardInterrupt(BaseException): 337 """ Program interrupted by user. """ 338 def __init__(self, *args, **kwargs): # real signature unknown 339 pass 340 341 @staticmethod # known case of __new__ 342 def __new__(S, *more): # real signature unknown; restored from __doc__ 343 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 344 pass 345 346 347 class KeyError(LookupError): 348 """ Mapping key not found. """ 349 def __init__(self, *args, **kwargs): # real signature unknown 350 pass 351 352 @staticmethod # known case of __new__ 353 def __new__(S, *more): # real signature unknown; restored from __doc__ 354 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 355 pass 356 357 def __str__(self): # real signature unknown; restored from __doc__ 358 """ x.__str__() <==> str(x) """ 359 pass 360 361 362 class MemoryError(StandardError): 363 """ Out of memory. """ 364 def __init__(self, *args, **kwargs): # real signature unknown 365 pass 366 367 @staticmethod # known case of __new__ 368 def __new__(S, *more): # real signature unknown; restored from __doc__ 369 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 370 pass 371 372 373 class NameError(StandardError): 374 """ Name not found globally. """ 375 def __init__(self, *args, **kwargs): # real signature unknown 376 pass 377 378 @staticmethod # known case of __new__ 379 def __new__(S, *more): # real signature unknown; restored from __doc__ 380 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 381 pass 382 383 384 class RuntimeError(StandardError): 385 """ Unspecified run-time error. """ 386 def __init__(self, *args, **kwargs): # real signature unknown 387 pass 388 389 @staticmethod # known case of __new__ 390 def __new__(S, *more): # real signature unknown; restored from __doc__ 391 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 392 pass 393 394 395 class NotImplementedError(RuntimeError): 396 """ Method or function hasn't been implemented yet. """ 397 def __init__(self, *args, **kwargs): # real signature unknown 398 pass 399 400 @staticmethod # known case of __new__ 401 def __new__(S, *more): # real signature unknown; restored from __doc__ 402 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 403 pass 404 405 406 class OSError(EnvironmentError): 407 """ OS system call failed. """ 408 def __init__(self, *args, **kwargs): # real signature unknown 409 pass 410 411 @staticmethod # known case of __new__ 412 def __new__(S, *more): # real signature unknown; restored from __doc__ 413 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 414 pass 415 416 417 class OverflowError(ArithmeticError): 418 """ Result too large to be represented. """ 419 def __init__(self, *args, **kwargs): # real signature unknown 420 pass 421 422 @staticmethod # known case of __new__ 423 def __new__(S, *more): # real signature unknown; restored from __doc__ 424 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 425 pass 426 427 428 class PendingDeprecationWarning(Warning): 429 """ 430 Base class for warnings about features which will be deprecated 431 in the future. 432 """ 433 def __init__(self, *args, **kwargs): # real signature unknown 434 pass 435 436 @staticmethod # known case of __new__ 437 def __new__(S, *more): # real signature unknown; restored from __doc__ 438 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 439 pass 440 441 442 class ReferenceError(StandardError): 443 """ Weak ref proxy used after referent went away. """ 444 def __init__(self, *args, **kwargs): # real signature unknown 445 pass 446 447 @staticmethod # known case of __new__ 448 def __new__(S, *more): # real signature unknown; restored from __doc__ 449 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 450 pass 451 452 453 class RuntimeWarning(Warning): 454 """ Base class for warnings about dubious runtime behavior. """ 455 def __init__(self, *args, **kwargs): # real signature unknown 456 pass 457 458 @staticmethod # known case of __new__ 459 def __new__(S, *more): # real signature unknown; restored from __doc__ 460 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 461 pass 462 463 464 class StopIteration(Exception): 465 """ Signal the end from iterator.next(). """ 466 def __init__(self, *args, **kwargs): # real signature unknown 467 pass 468 469 @staticmethod # known case of __new__ 470 def __new__(S, *more): # real signature unknown; restored from __doc__ 471 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 472 pass 473 474 475 class SyntaxWarning(Warning): 476 """ Base class for warnings about dubious syntax. """ 477 def __init__(self, *args, **kwargs): # real signature unknown 478 pass 479 480 @staticmethod # known case of __new__ 481 def __new__(S, *more): # real signature unknown; restored from __doc__ 482 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 483 pass 484 485 486 class SystemError(StandardError): 487 """ 488 Internal error in the Python interpreter. 489 490 Please report this to the Python maintainer, along with the traceback, 491 the Python version, and the hardware/OS platform and version. 492 """ 493 def __init__(self, *args, **kwargs): # real signature unknown 494 pass 495 496 @staticmethod # known case of __new__ 497 def __new__(S, *more): # real signature unknown; restored from __doc__ 498 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 499 pass 500 501 502 class SystemExit(BaseException): 503 """ Request to exit from the interpreter. """ 504 def __init__(self, *args, **kwargs): # real signature unknown 505 pass 506 507 @staticmethod # known case of __new__ 508 def __new__(S, *more): # real signature unknown; restored from __doc__ 509 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 510 pass 511 512 code = property(lambda self: object()) # default 513 514 515 class TabError(IndentationError): 516 """ Improper mixture of spaces and tabs. """ 517 def __init__(self, *args, **kwargs): # real signature unknown 518 pass 519 520 @staticmethod # known case of __new__ 521 def __new__(S, *more): # real signature unknown; restored from __doc__ 522 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 523 pass 524 525 526 class TypeError(StandardError): 527 """ Inappropriate argument type. """ 528 def __init__(self, *args, **kwargs): # real signature unknown 529 pass 530 531 @staticmethod # known case of __new__ 532 def __new__(S, *more): # real signature unknown; restored from __doc__ 533 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 534 pass 535 536 537 class UnboundLocalError(NameError): 538 """ Local name referenced but not bound to a value. """ 539 def __init__(self, *args, **kwargs): # real signature unknown 540 pass 541 542 @staticmethod # known case of __new__ 543 def __new__(S, *more): # real signature unknown; restored from __doc__ 544 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 545 pass 546 547 548 class ValueError(StandardError): 549 """ Inappropriate argument value (of correct type). """ 550 def __init__(self, *args, **kwargs): # real signature unknown 551 pass 552 553 @staticmethod # known case of __new__ 554 def __new__(S, *more): # real signature unknown; restored from __doc__ 555 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 556 pass 557 558 559 class UnicodeError(ValueError): 560 """ Unicode related error. """ 561 def __init__(self, *args, **kwargs): # real signature unknown 562 pass 563 564 @staticmethod # known case of __new__ 565 def __new__(S, *more): # real signature unknown; restored from __doc__ 566 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 567 pass 568 569 570 class UnicodeDecodeError(UnicodeError): 571 """ Unicode decoding error. """ 572 def __init__(self, *args, **kwargs): # real signature unknown 573 pass 574 575 @staticmethod # known case of __new__ 576 def __new__(S, *more): # real signature unknown; restored from __doc__ 577 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 578 pass 579 580 def __str__(self): # real signature unknown; restored from __doc__ 581 """ x.__str__() <==> str(x) """ 582 pass 583 584 encoding = property(lambda self: object()) # default 585 end = property(lambda self: object()) # default 586 object = property(lambda self: object()) # default 587 reason = property(lambda self: object()) # default 588 start = property(lambda self: object()) # default 589 590 591 class UnicodeEncodeError(UnicodeError): 592 """ Unicode encoding error. """ 593 def __init__(self, *args, **kwargs): # real signature unknown 594 pass 595 596 @staticmethod # known case of __new__ 597 def __new__(S, *more): # real signature unknown; restored from __doc__ 598 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 599 pass 600 601 def __str__(self): # real signature unknown; restored from __doc__ 602 """ x.__str__() <==> str(x) """ 603 pass 604 605 encoding = property(lambda self: object()) # default 606 end = property(lambda self: object()) # default 607 object = property(lambda self: object()) # default 608 reason = property(lambda self: object()) # default 609 start = property(lambda self: object()) # default 610 611 612 class UnicodeTranslateError(UnicodeError): 613 """ Unicode translation error. """ 614 def __init__(self, *args, **kwargs): # real signature unknown 615 pass 616 617 @staticmethod # known case of __new__ 618 def __new__(S, *more): # real signature unknown; restored from __doc__ 619 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 620 pass 621 622 def __str__(self): # real signature unknown; restored from __doc__ 623 """ x.__str__() <==> str(x) """ 624 pass 625 626 encoding = property(lambda self: object()) # default 627 end = property(lambda self: object()) # default 628 object = property(lambda self: object()) # default 629 reason = property(lambda self: object()) # default 630 start = property(lambda self: object()) # default 631 632 633 class UnicodeWarning(Warning): 634 """ 635 Base class for warnings about Unicode related problems, mostly 636 related to conversion problems. 637 """ 638 def __init__(self, *args, **kwargs): # real signature unknown 639 pass 640 641 @staticmethod # known case of __new__ 642 def __new__(S, *more): # real signature unknown; restored from __doc__ 643 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 644 pass 645 646 647 class UserWarning(Warning): 648 """ Base class for warnings generated by user code. """ 649 def __init__(self, *args, **kwargs): # real signature unknown 650 pass 651 652 @staticmethod # known case of __new__ 653 def __new__(S, *more): # real signature unknown; restored from __doc__ 654 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 655 pass 656 657 658 class WindowsError(OSError): 659 """ MS-Windows OS system call failed. """ 660 def __init__(self, *args, **kwargs): # real signature unknown 661 pass 662 663 @staticmethod # known case of __new__ 664 def __new__(S, *more): # real signature unknown; restored from __doc__ 665 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 666 pass 667 668 def __str__(self): # real signature unknown; restored from __doc__ 669 """ x.__str__() <==> str(x) """ 670 pass 671 672 errno = property(lambda self: object()) # default 673 filename = property(lambda self: object()) # default 674 strerror = property(lambda self: object()) # default 675 winerror = property(lambda self: object()) # default 676 677 678 class ZeroDivisionError(ArithmeticError): 679 """ Second argument to a division or modulo operation was zero. """ 680 def __init__(self, *args, **kwargs): # real signature unknown 681 pass 682 683 @staticmethod # known case of __new__ 684 def __new__(S, *more): # real signature unknown; restored from __doc__ 685 """ T.__new__(S, ...) -> a new object with type S, a subtype of T """ 686 pass